pf: Add validation to pf rules
This commit is contained in:
parent
7a2b2c0b48
commit
613f2b2d24
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
mode: 0600
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
validate: pfctl -N -f %s
|
||||
notify: reload pf
|
||||
when: firewall_src is defined
|
||||
|
||||
|
@ -17,5 +18,6 @@
|
|||
mode: 0600
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
validate: pfctl -N -f %s
|
||||
notify: reload pf
|
||||
when: firewall_src is not defined
|
||||
|
|
Loading…
Add table
Reference in a new issue