blob: 8e49812352875b8bd9467133e80130592ab3cd08 (
plain) (
tree)
|
|
- name: lint pf configuration
ansible.builtin.command: "pfctl -nf {{ pf_configuration_file }}"
- name: enable pf
ansible.builtin.command: pfctl -e
register: result
failed_when:
- result.rc != 0
- "'already enabled' not in result.stderr"
- name: restart pf
ansible.builtin.command: pfctl -f "{{ pf_configuration_file }}"
|