1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

Merge pull request #2 from deldesir/deldesir-patch-2

Create nginx.yml
This commit is contained in:
Blondel MONDESIR 2021-04-30 13:36:03 -04:00 committed by GitHub
commit f51f13f648
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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