initial version of pf module
This commit is contained in:
parent
107f5d32ac
commit
332b433971
4 changed files with 53 additions and 0 deletions
21
roles/pf/tasks/main.yml
Normal file
21
roles/pf/tasks/main.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
|
||||
- name: copy pf.conf
|
||||
copy:
|
||||
src: "{{ firewall_src }}"
|
||||
dest: /etc/pf.conf
|
||||
mode: 0600
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
notify: reload pf
|
||||
when: firewall_src is defined
|
||||
|
||||
- name: create pf.conf from template
|
||||
template:
|
||||
src: pf.conf.j2
|
||||
dest: /etc/pf.conf
|
||||
mode: 0600
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
notify: reload pf
|
||||
when: firewall_src is not defined
|
Loading…
Add table
Add a link
Reference in a new issue