aboutsummaryrefslogtreecommitdiffstats
path: root/roles/pf
diff options
context:
space:
mode:
Diffstat (limited to 'roles/pf')
-rw-r--r--roles/pf/tasks/main.yml2
-rw-r--r--roles/pf/templates/pf.conf.j22
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/pf/tasks/main.yml b/roles/pf/tasks/main.yml
index 3924a89..e5b8af8 100644
--- a/roles/pf/tasks/main.yml
+++ b/roles/pf/tasks/main.yml
@@ -12,6 +12,6 @@
- name: test ssh connection on new pf rule
wait_for:
- port: 22
+ port: "{{ ansible_port }}"
delay: 2
state: started
diff --git a/roles/pf/templates/pf.conf.j2 b/roles/pf/templates/pf.conf.j2
index 6bc936a..1b51fe7 100644
--- a/roles/pf/templates/pf.conf.j2
+++ b/roles/pf/templates/pf.conf.j2
@@ -8,7 +8,7 @@ set skip on { lo wg0 }
block all
# force ssh if not present below
-pass in quick on egress proto tcp to port 22
+pass in quick on egress proto tcp to port {{ ansible_port }}
# host services
{% for service in __services %}
remember that computers suck.