1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00
iiab/roles/cups/tasks/nginx.yml
2021-05-04 11:21:01 -04:00

16 lines
458 B
YAML

- name: Enable http://box/print via NGINX, by installing {{ nginx_conf_dir }}/cups.conf from template
template:
src: cups.conf
dest: /etc/nginx/conf.d/cups.conf
when: cups_enabled
- name: Disable http://box/print via NGINX, by removing {{ nginx_conf_dir }}/cups.conf
file:
path: /etc/nginx/conf.d/cups.conf
state: absent
when: not cups_enabled
- name: Restart 'nginx' systemd service
systemd:
name: nginx
state: restarted