diff --git a/tasks/instance.yml b/tasks/instance.yml index 2619f7e..1a6d5fe 100644 --- a/tasks/instance.yml +++ b/tasks/instance.yml @@ -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: