mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +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
|
state: restarted
|
||||||
when: kiwix_enabled | bool
|
when: kiwix_enabled | bool
|
||||||
|
|
||||||
- name: Disable 'kiwix-serve' systemd service
|
- name: Disable & Stop 'kiwix-serve' systemd service
|
||||||
systemd:
|
systemd:
|
||||||
name: kiwix-serve
|
name: kiwix-serve
|
||||||
enabled: no
|
enabled: no
|
||||||
|
@ -36,11 +36,11 @@
|
||||||
|
|
||||||
# Apache
|
# 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
|
command: a2ensite kiwix.conf
|
||||||
when: apache_install and kiwix_enabled
|
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
|
command: a2dissite kiwix.conf
|
||||||
when: apache_install and not kiwix_enabled
|
when: apache_install and not kiwix_enabled
|
||||||
|
|
||||||
|
@ -53,16 +53,13 @@
|
||||||
|
|
||||||
# NGINX
|
# 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:
|
template:
|
||||||
src: kiwix-nginx.conf
|
src: kiwix-nginx.conf
|
||||||
dest: "{{ nginx_config_dir }}/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
|
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:
|
file:
|
||||||
path: "{{ nginx_config_dir }}/kiwix-nginx.conf"
|
path: "{{ nginx_config_dir }}/kiwix-nginx.conf"
|
||||||
state: absent
|
state: absent
|
||||||
|
@ -71,7 +68,6 @@
|
||||||
- name: Restart nginx systemd service
|
- name: Restart nginx systemd service
|
||||||
systemd:
|
systemd:
|
||||||
name: nginx
|
name: nginx
|
||||||
daemon-reload: yes
|
|
||||||
state: restarted
|
state: restarted
|
||||||
when: nginx_enabled | bool
|
when: nginx_enabled | bool
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue