mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update kiwix_install.yml
This commit is contained in:
parent
5d6ca04928
commit
cde91c388b
1 changed files with 9 additions and 8 deletions
|
@ -37,7 +37,7 @@
|
||||||
- name: Set kiwix_force_install if kiwix-serve not found
|
- name: Set kiwix_force_install if kiwix-serve not found
|
||||||
set_fact:
|
set_fact:
|
||||||
kiwix_force_install: True
|
kiwix_force_install: True
|
||||||
when: kiwix_bin.stat.exists is defined and not kiwix_bin.stat.exists
|
when: not kiwix_bin.stat.exists
|
||||||
|
|
||||||
- name: Copy test.zim file if kiwix_force_install
|
- name: Copy test.zim file if kiwix_force_install
|
||||||
copy:
|
copy:
|
||||||
|
@ -110,13 +110,6 @@
|
||||||
- { src: 'iiab-make-kiwix-lib.py', dest: '/usr/bin/iiab-make-kiwix-lib.py', mode: '0755'}
|
- { src: 'iiab-make-kiwix-lib.py', dest: '/usr/bin/iiab-make-kiwix-lib.py', mode: '0755'}
|
||||||
- { src: 'iiab-make-apache-config.py', dest: '/usr/bin/iiab-make-apache-config.py', mode: '0755'}
|
- { src: 'iiab-make-apache-config.py', dest: '/usr/bin/iiab-make-apache-config.py', mode: '0755'}
|
||||||
|
|
||||||
- name: Disable 'kiwix-serve' service
|
|
||||||
service:
|
|
||||||
name: kiwix-serve
|
|
||||||
enabled: no
|
|
||||||
state: stopped
|
|
||||||
when: not kiwix_enabled
|
|
||||||
|
|
||||||
- name: Enable 'kiwix-serve' service
|
- name: Enable 'kiwix-serve' service
|
||||||
service:
|
service:
|
||||||
name: kiwix-serve
|
name: kiwix-serve
|
||||||
|
@ -124,6 +117,14 @@
|
||||||
state: restarted
|
state: restarted
|
||||||
when: kiwix_enabled
|
when: kiwix_enabled
|
||||||
|
|
||||||
|
- name: Disable 'kiwix-serve' service
|
||||||
|
service:
|
||||||
|
name: kiwix-serve
|
||||||
|
enabled: no
|
||||||
|
state: stopped
|
||||||
|
when: not kiwix_enabled
|
||||||
|
# IN THEORY: BOTH CRON ENTRIES BELOW *SHOULD* BE DELETED "when: not kiwix_enabled"
|
||||||
|
|
||||||
# In the past kiwix-serve did not stay running, so we'd been doing this hourly.
|
# In the past kiwix-serve did not stay running, so we'd been doing this hourly.
|
||||||
# @mgautierfr & others suggest kiwix-serve might be auto-restarted w/o cron in
|
# @mgautierfr & others suggest kiwix-serve might be auto-restarted w/o cron in
|
||||||
# future, whenever service fails, if this really catches all cases??
|
# future, whenever service fails, if this really catches all cases??
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue