From 8b29860208438a77af8a974a72e688599ca484c1 Mon Sep 17 00:00:00 2001 From: binary Date: Mon, 2 Nov 2020 13:27:47 +0100 Subject: Add pf playbook and role --- roles/pf/tasks/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 roles/pf/tasks/main.yml (limited to 'roles/pf/tasks/main.yml') 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 -- cgit v1.2.3