1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +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 name: kiwix-serve
enabled: yes enabled: yes
state: restarted state: restarted
when: kiwix_enabled when: kiwix_enabled | bool
- name: Disable 'kiwix-serve' service - name: Disable 'kiwix-serve' service
systemd: systemd:
@ -64,19 +64,19 @@
dest: /etc/crontab dest: /etc/crontab
when: kiwix_enabled and is_redhat when: kiwix_enabled and is_redhat
- name: Restart Apache, so it picks up kiwix.conf - name: Restart Apache systemd service ({{ apache_service }})
systemd: systemd:
name: "{{ apache_service }}" name: "{{ apache_service }}"
state: restarted
daemon-reload: yes daemon-reload: yes
state: restarted
when: not nginx_enabled when: not nginx_enabled
- name: Restart nginx service - name: Restart nginx systemd service
systemd: systemd:
name: nginx name: nginx
state: restarted
daemon-reload: yes daemon-reload: yes
when: nginx_enabled state: restarted
when: nginx_enabled | bool
# 5. FINALIZE # 5. FINALIZE