mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
Update kiwix/tasks/enable.yml
This commit is contained in:
parent
6304ebc6d5
commit
2159797985
1 changed files with 5 additions and 9 deletions
|
@ -6,7 +6,7 @@
|
|||
state: restarted
|
||||
when: kiwix_enabled | bool
|
||||
|
||||
- name: Disable 'kiwix-serve' systemd service
|
||||
- name: Disable & Stop 'kiwix-serve' systemd service
|
||||
systemd:
|
||||
name: kiwix-serve
|
||||
enabled: no
|
||||
|
@ -36,11 +36,11 @@
|
|||
|
||||
# Apache
|
||||
|
||||
- name: "Enable http://box{{ kiwix_url_without_slash }} via Apache"
|
||||
- name: Enable http://box{{ kiwix_url_without_slash }} via Apache
|
||||
command: a2ensite kiwix.conf
|
||||
when: apache_install and kiwix_enabled
|
||||
|
||||
- name: "Disable http://box{{ kiwix_url_without_slash }} via Apache"
|
||||
- name: Disable http://box{{ kiwix_url_without_slash }} via Apache
|
||||
command: a2dissite kiwix.conf
|
||||
when: apache_install and not kiwix_enabled
|
||||
|
||||
|
@ -53,16 +53,13 @@
|
|||
|
||||
# NGINX
|
||||
|
||||
- name: "Enable http://box{{ kiwix_url_without_slash }} via NGINX, by installing {{ nginx_config_dir }}/kiwix-nginx.conf from template"
|
||||
- name: Enable http://box{{ kiwix_url_without_slash }} via NGINX, by installing {{ nginx_config_dir }}/kiwix-nginx.conf from template
|
||||
template:
|
||||
src: kiwix-nginx.conf
|
||||
dest: "{{ nginx_config_dir }}/kiwix-nginx.conf"
|
||||
owner: root # Not nec? Remove?
|
||||
group: root # Not nec? Remove?
|
||||
mode: '0644' # Not nec? Remove?
|
||||
when: nginx_install and kiwix_enabled
|
||||
|
||||
- name: "Disable http://box{{ kiwix_url_without_slash }} via NGINX, by removing {{ nginx_config_dir }}/kiwix-nginx.conf"
|
||||
- name: Disable http://box{{ kiwix_url_without_slash }} via NGINX, by removing {{ nginx_config_dir }}/kiwix-nginx.conf
|
||||
file:
|
||||
path: "{{ nginx_config_dir }}/kiwix-nginx.conf"
|
||||
state: absent
|
||||
|
@ -71,7 +68,6 @@
|
|||
- name: Restart nginx systemd service
|
||||
systemd:
|
||||
name: nginx
|
||||
daemon-reload: yes
|
||||
state: restarted
|
||||
when: nginx_enabled | bool
|
||||
|
||||
|
|
Loading…
Reference in a new issue