aboutsummaryrefslogtreecommitdiffstats
path: root/roles/pf/tasks/main.yml
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-02 13:27:47 +0100
committerbinary <me@rgoncalves.se>2020-11-02 13:27:47 +0100
commit8b29860208438a77af8a974a72e688599ca484c1 (patch)
tree075ff7c7dc695ed4f6ed56b169a50bcd0016c670 /roles/pf/tasks/main.yml
parentcfe4db7482bd7e3be8fa406aa6080e10710ab648 (diff)
downloadinfrastructure-8b29860208438a77af8a974a72e688599ca484c1.tar.gz
Add pf playbook and role
Diffstat (limited to 'roles/pf/tasks/main.yml')
-rw-r--r--roles/pf/tasks/main.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/pf/tasks/main.yml b/roles/pf/tasks/main.yml
new file mode 100644
index 0000000..7916c69
--- /dev/null
+++ b/roles/pf/tasks/main.yml
@@ -0,0 +1,15 @@
+
+# pf ~~ tasks/main.yml
+
+---
+
+- name: Generate and sync configuration
+ template:
+ src: templates/pf.conf.j2
+ dest: /etc/pf.conf
+ owner: root
+ group: "{{ group.root }}"
+ mode: "0600"
+
+- name: Restart pf
+ shell: /sbin/pfctl -f /etc/pf.conf
remember that computers suck.