mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
'when: X' -> 'when: X | bool' for Ansibl 2.8
This commit is contained in:
parent
176abdd2f5
commit
3a1ccf3638
89 changed files with 248 additions and 248 deletions
|
@ -47,7 +47,7 @@
|
|||
owner: root
|
||||
group: root
|
||||
force: no
|
||||
when: kiwix_force_install
|
||||
when: kiwix_force_install | bool
|
||||
|
||||
- name: Create {{ kiwix_path }}/bin directory # /opt/iiab/kiwix/bin
|
||||
file:
|
||||
|
@ -65,11 +65,11 @@
|
|||
dest: /tmp
|
||||
owner: root
|
||||
group: root
|
||||
when: kiwix_force_install
|
||||
when: kiwix_force_install | bool
|
||||
|
||||
- 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/"
|
||||
when: kiwix_force_install
|
||||
when: kiwix_force_install | bool
|
||||
|
||||
# 3. ENABLE MODS FOR APACHE PROXY IF DEBUNTU
|
||||
|
||||
|
@ -81,7 +81,7 @@
|
|||
- proxy_html
|
||||
- proxy_http
|
||||
- rewrite
|
||||
when: is_debuntu
|
||||
when: is_debuntu | bool
|
||||
|
||||
# 4. CREATE/ENABLE/RESTART (OR DISABLE) KIWIX SERVICE & ITS CRON JOB
|
||||
|
||||
|
@ -106,14 +106,14 @@
|
|||
src: /etc/apache2/sites-available/kiwix.conf
|
||||
path: /etc/apache2/sites-enabled/kiwix.conf
|
||||
state: link
|
||||
when: is_debuntu
|
||||
when: is_debuntu | bool
|
||||
|
||||
- name: Enable & Restart 'kiwix-serve' service
|
||||
service:
|
||||
name: kiwix-serve
|
||||
enabled: yes
|
||||
state: restarted
|
||||
when: kiwix_enabled
|
||||
when: kiwix_enabled | bool
|
||||
|
||||
- name: Disable 'kiwix-serve' service
|
||||
service:
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
url: "{{ iiab_download_url }}/{{ kiwix_src_file }}"
|
||||
dest: "{{ downloads_dir }}/{{ kiwix_src_file }}"
|
||||
timeout: "{{ download_timeout }}"
|
||||
when: internet_available
|
||||
when: internet_available | bool
|
||||
|
||||
- name: Check for /opt/iiab/downloads/{{ kiwix_src_file }}
|
||||
stat:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue