1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

Update kiwix/tasks/kiwix_enable.yml

This commit is contained in:
A Holt 2020-01-10 18:31:18 -05:00 committed by GitHub
parent 866275179d
commit ccc34891a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@
name: kiwix-serve
enabled: yes
state: restarted
when: kiwix_enabled
when: kiwix_enabled | bool
- name: Disable 'kiwix-serve' service
systemd:
@ -64,19 +64,19 @@
dest: /etc/crontab
when: kiwix_enabled and is_redhat
- name: Restart Apache, so it picks up kiwix.conf
- name: Restart Apache systemd service ({{ apache_service }})
systemd:
name: "{{ apache_service }}"
state: restarted
daemon-reload: yes
state: restarted
when: not nginx_enabled
- name: Restart nginx service
- name: Restart nginx systemd service
systemd:
name: nginx
state: restarted
daemon-reload: yes
when: nginx_enabled
state: restarted
when: nginx_enabled | bool
# 5. FINALIZE