12 lines
229 B
YAML
Raw Permalink Normal View History

2024-05-31 01:17:29 +03:00
---
- name: Configure firewall
template:
src: templates/pf.conf.j2
dest: /etc/pf.conf
validate: pfctl -n -f %s
register: pf
- name: Load config to pf if needed
command: pfctl -f /etc/pf.conf
when: pf.changed