nginx firewall rules only if nginx not localhost
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-02-20 22:29:47 +01:00
parent a0bdebd347
commit e25f35f76d

View File

@ -42,7 +42,9 @@
name: allow_cups_nginx_proxy
state: present
rules: '-A OUTPUT -m state --state NEW -p tcp -d {{ cups_nginx_proxy_url.split(":")[0] }} --dport {{ cups_nginx_proxy_url.split(":")[1] }} -j ACCEPT'
when: cups_nginx_iptables_enabled
when:
- cups_nginx_iptables_enabled
- not cups_nginx_server == inventory_hostname
delegate_to: "{{ cups_nginx_server }}"
become: True
become_user: root