mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 19:52:06 +00:00
16 lines
594 B
YAML
16 lines
594 B
YAML
- name: Enable http://box/sugarizer via NGINX, by installing {{ nginx_conf_dir }}/sugarizer-nginx.conf from template
|
|
template:
|
|
src: sugarizer-nginx.conf
|
|
dest: "{{ nginx_conf_dir }}/sugarizer-nginx.conf" # /etc/nginx/conf.d
|
|
when: sugarizer_enabled | bool
|
|
|
|
- name: Disable http://box/sugarizer via NGINX, by removing {{ nginx_conf_dir }}/sugarizer-nginx.conf
|
|
file:
|
|
path: "{{ nginx_conf_dir }}/sugarizer-nginx.conf" # /etc/nginx/conf.d
|
|
state: absent
|
|
when: not sugarizer_enabled
|
|
|
|
- name: Restart 'nginx' systemd service
|
|
systemd:
|
|
name: nginx
|
|
state: restarted
|