diff options
-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 |