diff options
author | binary <me@rgoncalves.se> | 2021-01-24 12:48:08 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2021-01-24 12:48:08 +0100 |
commit | 1cd1f5834b0a707c1e8aaae9ebd945e8551e915e (patch) | |
tree | 20581f5f56335a7e28daf9080d8e9f7df210fa19 /roles/pf/tasks | |
parent | 59619996d436f5688ab5946d820d20642d980df0 (diff) | |
download | infrastructure-1cd1f5834b0a707c1e8aaae9ebd945e8551e915e.tar.gz |
Already enabled shown as success
Diffstat (limited to 'roles/pf/tasks')
-rw-r--r-- | roles/pf/tasks/main.yml | 3 |
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 |