mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
Create nginx.yml
This commit is contained in:
parent
3cda4faa59
commit
4d88529770
1 changed files with 16 additions and 0 deletions
16
roles/cups/tasks/nginx.yml
Normal file
16
roles/cups/tasks/nginx.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
- name: Enable http://box/print via NGINX, by installing {{ nginx_conf_dir }}/cups.conf from template
|
||||||
|
template:
|
||||||
|
src: cups.conf
|
||||||
|
dest: "{{ nginx_conf_dir }}/cups.conf" # /etc/nginx/conf.d
|
||||||
|
when: cups_enabled
|
||||||
|
|
||||||
|
- name: Disable http://box/print via NGINX, by removing {{ nginx_conf_dir }}/cups.conf
|
||||||
|
file:
|
||||||
|
path: "{{ nginx_conf_dir }}/cups.conf" # /etc/nginx/conf.d
|
||||||
|
state: absent
|
||||||
|
when: not cups_enabled
|
||||||
|
|
||||||
|
- name: Restart 'nginx' systemd service
|
||||||
|
systemd:
|
||||||
|
name: nginx
|
||||||
|
state: restarted
|
Loading…
Reference in a new issue