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

17 lines
458 B
YAML
Raw Normal View History

2021-04-30 17:32:42 +00:00
- name: Enable http://box/print via NGINX, by installing {{ nginx_conf_dir }}/cups.conf from template
template:
2021-05-04 15:19:54 +00:00
src: cups.conf
dest: /etc/nginx/conf.d/cups.conf
2021-04-30 17:32:42 +00:00
when: cups_enabled
- name: Disable http://box/print via NGINX, by removing {{ nginx_conf_dir }}/cups.conf
file:
2021-05-04 15:21:01 +00:00
path: /etc/nginx/conf.d/cups.conf
2021-04-30 17:32:42 +00:00
state: absent
when: not cups_enabled
- name: Restart 'nginx' systemd service
systemd:
name: nginx
state: restarted