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:
parent
866275179d
commit
ccc34891a5
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue