Skip to content

Commit

Permalink
Also replace when not defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-de-bock committed Jan 7, 2025
1 parent 6c8aec1 commit f0ff169
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tasks/instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@
group: "{{ instance.group | default(tomcat_group) }}"
mode: "0640"
when:
- instance.remove_webapps is defined
- instance.remove_webapps is iterable
- "'ROOT' not in instance.remove_webapps"
- instance.remove_webapps is not defined or (instance.remove_webapps is defined and instance.remove_webapps is iterable and "'ROOT' not in instance.remove_webapps")

- name: instance | Remove selected webapps
ansible.builtin.file:
Expand Down

0 comments on commit f0ff169

Please sign in to comment.