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
7952de4332
commit
42657c6bbf
1 changed files with 9 additions and 5 deletions
|
@ -7,7 +7,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ iiab_zim_path }}"
|
- "{{ iiab_zim_path }}"
|
||||||
- "{{ kiwix_content_path }}"
|
- "{{ iiab_zim_path }}/content"
|
||||||
- "{{ iiab_zim_path }}/index"
|
- "{{ iiab_zim_path }}/index"
|
||||||
|
|
||||||
- name: Check for /library/zims/library.xml
|
- name: Check for /library/zims/library.xml
|
||||||
|
@ -103,10 +103,13 @@
|
||||||
- rewrite
|
- rewrite
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
|
|
||||||
# workaround because kiwix-serve does not stay running
|
# 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
|
||||||
|
# future, whenever service fails, if this really catches all cases?
|
||||||
|
# https://github.com/iiab/iiab/issues/484#issuecomment-342151726
|
||||||
- name: Make a crontab entry to restart kiwix-serve at 4AM (debuntu)
|
- name: Make a crontab entry to restart kiwix-serve at 4AM (debuntu)
|
||||||
# * * * * * user-name command to be executed
|
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
# m h d m day-of-week[Sunday=0] username command-to-be-executed
|
||||||
line: "0 4 * * * root /bin/systemctl restart kiwix-serve.service"
|
line: "0 4 * * * root /bin/systemctl restart kiwix-serve.service"
|
||||||
dest: /etc/crontab
|
dest: /etc/crontab
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
|
@ -171,7 +174,8 @@
|
||||||
value: "{{ iiab_zim_path }}"
|
value: "{{ iiab_zim_path }}"
|
||||||
- option: kiwix_library_xml
|
- option: kiwix_library_xml
|
||||||
value: "{{ kiwix_library_xml }}"
|
value: "{{ kiwix_library_xml }}"
|
||||||
- option: kiwix_content_path
|
# The following 2 lines are unused as of Nov 2017:
|
||||||
value: "{{ kiwix_content_path }}"
|
# - option: kiwix_content_path
|
||||||
|
# value: "{{ kiwix_content_path }}"
|
||||||
- option: enabled
|
- option: enabled
|
||||||
value: "{{ kiwix_enabled }}"
|
value: "{{ kiwix_enabled }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue