mirror of
https://github.com/pikami/mail-server.git
synced 2025-02-13 03:05:05 +00:00
12 lines
229 B
YAML
12 lines
229 B
YAML
|
---
|
||
|
- 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
|