nginx firewall rules only if nginx not localhost
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a0bdebd347
commit
e25f35f76d
@ -42,7 +42,9 @@
|
|||||||
name: allow_cups_nginx_proxy
|
name: allow_cups_nginx_proxy
|
||||||
state: present
|
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'
|
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 }}"
|
delegate_to: "{{ cups_nginx_server }}"
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
Loading…
Reference in New Issue
Block a user