initial version of pf module

This commit is contained in:
Timo Makinen 2019-05-22 23:39:12 +03:00
parent 107f5d32ac
commit 332b433971
4 changed files with 53 additions and 0 deletions

21
roles/pf/tasks/main.yml Normal file
View 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