Skip to content

Commit

Permalink
Only close if DEFINED and ABSENT.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Jul 22, 2020
1 parent e12123f commit ace5fcc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
- ansible_connection != "docker"
- firewall_services is defined
- firewall_service == "ufw"
- item.state is defined
- item.state == "absent"
loop_control:
label: "{{ item.name }}"
Expand Down Expand Up @@ -72,6 +73,7 @@
- firewall_services is defined
- firewall_service == "firewalld"
- item.name is number
- item.state is defined
- item.state == "absent"
loop_control:
label: "{{ item.name }}"
Expand Down

0 comments on commit ace5fcc

Please sign in to comment.