aboutsummaryrefslogtreecommitdiffstats
path: root/roles/pf/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/pf/tasks/main.yml')
-rw-r--r--roles/pf/tasks/main.yml13
1 files changed, 8 insertions, 5 deletions
diff --git a/roles/pf/tasks/main.yml b/roles/pf/tasks/main.yml
index e5b8af8..8e81e1c 100644
--- a/roles/pf/tasks/main.yml
+++ b/roles/pf/tasks/main.yml
@@ -1,17 +1,20 @@
+---
+
- name: generate pf configuration
- template:
+ ansible.builtin.template:
src: pf.conf.j2
dest: "{{ pf_configuration_file }}"
owner: 0
group: 0
- mode: 0600
+ mode: "0600"
notify:
- lint pf configuration
- enable pf
- restart pf
-- name: test ssh connection on new pf rule
- wait_for:
- port: "{{ ansible_port }}"
+- name: test pf rules
+ ansible.builtin.wait_for:
+ port: "{{ item }}"
delay: 2
state: started
+ loop: "{{ pf_test_ports }}"
remember that computers suck.