aboutsummaryrefslogtreecommitdiffstats
path: root/roles/pf/handlers
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-12-17 21:58:37 +0100
committerRomain Gonçalves <me@rgoncalves.se>2022-12-17 21:58:37 +0100
commit3c256ad4bc071685b35fe601fc5683a858914d80 (patch)
tree812fcd0a9bdd0fce6a66d6d3a31341245a4c90b9 /roles/pf/handlers
parent322c53df835d24feda59fa287e4062c6e9f69480 (diff)
downloadrules-3c256ad4bc071685b35fe601fc5683a858914d80.tar.gz
refactor(roles/pf): modular test for open ports
Diffstat (limited to 'roles/pf/handlers')
-rw-r--r--roles/pf/handlers/main.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/pf/handlers/main.yml b/roles/pf/handlers/main.yml
index 85a0996..2d518eb 100644
--- a/roles/pf/handlers/main.yml
+++ b/roles/pf/handlers/main.yml
@@ -5,10 +5,10 @@
- name: enable pf
ansible.builtin.command: pfctl -e
- register: result
+ register: pf_result_enable
failed_when:
- - result.rc != 0
- - "'already enabled' not in result.stderr"
+ - pf_result_enable.result.rc != 0
+ - "'already enabled' not in pf_result_enabled.result.stderr"
- name: restart pf
ansible.builtin.command: pfctl -f "{{ pf_configuration_file }}"
remember that computers suck.