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
|
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
|
||||||
|
|
Loading…
Reference in a new issue