mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update kiwix/tasks/install.yml
This commit is contained in:
parent
fbe40e026f
commit
ee22ac3ecf
1 changed files with 17 additions and 17 deletions
|
@ -15,9 +15,9 @@
|
||||||
- name: Create directory {{ iiab_zim_path }} and subdirs {content, index} for Kiwix ZIM files
|
- name: Create directory {{ iiab_zim_path }} and subdirs {content, index} for Kiwix ZIM files
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
owner: root # Not nec? Remove?
|
# owner: root
|
||||||
group: root # Not nec? Remove?
|
# group: root
|
||||||
mode: '0755' # Not nec? Remove?
|
# mode: '0755'
|
||||||
state: directory
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ iiab_zim_path }}"
|
- "{{ iiab_zim_path }}"
|
||||||
|
@ -33,9 +33,9 @@
|
||||||
template:
|
template:
|
||||||
src: library.xml
|
src: library.xml
|
||||||
dest: "{{ kiwix_library_xml }}"
|
dest: "{{ kiwix_library_xml }}"
|
||||||
owner: root # Not nec? Remove?
|
# owner: root
|
||||||
group: root # Not nec? Remove?
|
# group: root
|
||||||
mode: '0644' # Not nec? Remove?
|
# mode: '0644'
|
||||||
force: no
|
force: no
|
||||||
when: not kiwix_xml.stat.exists
|
when: not kiwix_xml.stat.exists
|
||||||
|
|
||||||
|
@ -43,17 +43,17 @@
|
||||||
copy:
|
copy:
|
||||||
src: test.zim
|
src: test.zim
|
||||||
dest: "{{ iiab_zim_path }}/content/test.zim"
|
dest: "{{ iiab_zim_path }}/content/test.zim"
|
||||||
owner: root # Not nec? Remove?
|
# owner: root
|
||||||
group: root # Not nec? Remove?
|
# group: root
|
||||||
mode: '0644' # Not nec? Remove?
|
# mode: '0644'
|
||||||
force: no
|
force: no
|
||||||
|
|
||||||
- name: Create {{ kiwix_path }}/bin directory # /opt/iiab/kiwix/bin
|
- name: Create {{ kiwix_path }}/bin directory # /opt/iiab/kiwix/bin
|
||||||
file:
|
file:
|
||||||
path: "{{ kiwix_path }}/bin"
|
path: "{{ kiwix_path }}/bin"
|
||||||
owner: root # Not nec? Remove?
|
# owner: root
|
||||||
group: root # Not nec? Remove?
|
# group: root
|
||||||
mode: '0755' # Not nec? Remove?
|
# mode: '0755'
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
# 2. INSTALL KIWIX-TOOLS EXECUTABLES
|
# 2. INSTALL KIWIX-TOOLS EXECUTABLES
|
||||||
|
@ -62,8 +62,8 @@
|
||||||
unarchive:
|
unarchive:
|
||||||
src: "{{ downloads_dir }}/{{ kiwix_src_file }}"
|
src: "{{ downloads_dir }}/{{ kiwix_src_file }}"
|
||||||
dest: /tmp
|
dest: /tmp
|
||||||
owner: root # Not nec? Remove?
|
# owner: root
|
||||||
group: root # Not nec? Remove?
|
# group: root
|
||||||
|
|
||||||
- name: Move /tmp/{{ kiwix_src_dir }}/* to permanent location /opt/iiab/kiwix/bin (armhf & linux64 & i686)
|
- name: Move /tmp/{{ kiwix_src_dir }}/* to permanent location /opt/iiab/kiwix/bin (armhf & linux64 & i686)
|
||||||
shell: "mv /tmp/{{ kiwix_src_dir }}/* {{ kiwix_path }}/bin/"
|
shell: "mv /tmp/{{ kiwix_src_dir }}/* {{ kiwix_path }}/bin/"
|
||||||
|
@ -88,8 +88,8 @@
|
||||||
template:
|
template:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
owner: root # Not nec? Remove?
|
# owner: root
|
||||||
group: root # Not nec? Remove?
|
# group: root
|
||||||
mode: "{{ item.mode }}"
|
mode: "{{ item.mode }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { src: 'kiwix-serve.service.j2', dest: '/etc/systemd/system/kiwix-serve.service', mode: '0644'}
|
- { src: 'kiwix-serve.service.j2', dest: '/etc/systemd/system/kiwix-serve.service', mode: '0644'}
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
- { src: 'iiab-make-kiwix-lib3.py', dest: '/usr/bin/iiab-make-kiwix-lib.py', mode: '0755'}
|
- { src: 'iiab-make-kiwix-lib3.py', dest: '/usr/bin/iiab-make-kiwix-lib.py', mode: '0755'}
|
||||||
- { src: 'kiwix.conf.j2', dest: '/etc/{{ apache_config_dir }}/kiwix.conf', mode: '0644'}
|
- { src: 'kiwix.conf.j2', dest: '/etc/{{ apache_config_dir }}/kiwix.conf', mode: '0644'}
|
||||||
|
|
||||||
5. RECORD KIWIX AS INSTALLED
|
5. RECORD KIWIX AS INSTALLED IN /etc/iiab/iiab_state.yml
|
||||||
|
|
||||||
- name: Add 'kiwix_installed' variable values to {{ iiab_state_file }}
|
- name: Add 'kiwix_installed' variable values to {{ iiab_state_file }}
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue