got it running, added net, pf and jail roles
This commit is contained in:
20
roles/firewall/tasks/main.yaml
Normal file
20
roles/firewall/tasks/main.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: enable pf
|
||||
community.general.sysrc:
|
||||
name: pf_enable
|
||||
value: "YES"
|
||||
notify: start pf
|
||||
|
||||
- name: enable pflog
|
||||
community.general.sysrc:
|
||||
name: pflog_enable
|
||||
value: "YES"
|
||||
notify: start pflog
|
||||
|
||||
- name: template pf.conf
|
||||
template:
|
||||
src: pf.conf.j2
|
||||
dest: /etc/pf.conf
|
||||
notify: reload pf
|
||||
|
||||
- meta: flush_handlers
|
||||
Reference in New Issue
Block a user