aboutsummaryrefslogtreecommitdiffstats
path: root/roles/pf/handlers
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-10-22 16:41:45 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-10-22 16:41:45 +0200
commit0df015e9b5c4aefd4245c94ee98021d2af80ed99 (patch)
treed9dbf4259500857daf41b627dbc2d116ba92dbc1 /roles/pf/handlers
parent1cd2d31e0d5f81ce066121de78c0ed042fc3b6aa (diff)
downloadrules-0df015e9b5c4aefd4245c94ee98021d2af80ed99.tar.gz
lint: pass ansible-lint + yamllint
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 5d75a1a..8e49812 100644
--- a/roles/pf/handlers/main.yml
+++ b/roles/pf/handlers/main.yml
@@ -1,12 +1,12 @@
- name: lint pf configuration
- command: "pfctl -nf {{ pf_configuration_file }}"
+ ansible.builtin.command: "pfctl -nf {{ pf_configuration_file }}"
- name: enable pf
- command: pfctl -e
+ ansible.builtin.command: pfctl -e
register: result
failed_when:
- result.rc != 0
- "'already enabled' not in result.stderr"
- name: restart pf
- command: pfctl -f "{{ pf_configuration_file }}"
+ ansible.builtin.command: pfctl -f "{{ pf_configuration_file }}"
remember that computers suck.