diff --git a/smartgears/catalina-app-conf/tasks/main.yml b/smartgears/catalina-app-conf/tasks/main.yml index 1e724f3f..84aa3a3e 100644 --- a/smartgears/catalina-app-conf/tasks/main.yml +++ b/smartgears/catalina-app-conf/tasks/main.yml @@ -13,7 +13,7 @@ - name: Remove the catalina webapp configurations file: dest={{ smartgears_instance_path }}/conf/Catalina/localhost/{{ item.app_name }}.xml state=absent with_items: '{{ catalina_apps_conf }}' - when: ( not item.state | default(True) ) and ansible_distribution_major_version <= '16' + when: ( not item.state | default(True) ) become: True become_user: '{{ smartgears_user }}'