aboutsummaryrefslogtreecommitdiffstats
path: root/roles/pf/tasks/main.yml
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-01-24 12:48:08 +0100
committerbinary <me@rgoncalves.se>2021-01-24 12:48:08 +0100
commit1cd1f5834b0a707c1e8aaae9ebd945e8551e915e (patch)
tree20581f5f56335a7e28daf9080d8e9f7df210fa19 /roles/pf/tasks/main.yml
parent59619996d436f5688ab5946d820d20642d980df0 (diff)
downloadinfrastructure-1cd1f5834b0a707c1e8aaae9ebd945e8551e915e.tar.gz
Already enabled shown as success
Diffstat (limited to 'roles/pf/tasks/main.yml')
-rw-r--r--roles/pf/tasks/main.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/pf/tasks/main.yml b/roles/pf/tasks/main.yml
index 4adc520..8263539 100644
--- a/roles/pf/tasks/main.yml
+++ b/roles/pf/tasks/main.yml
@@ -13,7 +13,8 @@
- name: enable pf
shell: /sbin/pfctl -e
- ignore_errors: true
+ register: result
+ failed_when: result.rc != 0 and "already enabled" not in result.stderr
- name: restart pf
shell: /sbin/pfctl -f /etc/pf.conf
remember that computers suck.