diff --git a/smartgears/gcube-oauth/tasks/main.yml b/smartgears/gcube-oauth/tasks/main.yml index 4eaa112d..2ca848f8 100644 --- a/smartgears/gcube-oauth/tasks/main.yml +++ b/smartgears/gcube-oauth/tasks/main.yml @@ -1,7 +1,10 @@ --- - block: - name: Remove the old gcube oauth files - file: path={{ smartgears_instance_path }}/webapps/gcube-{{ gcube_oauth_name }} state=absent + file: path={{ item }} state=absent + with_items: + - '{{ smartgears_instance_path }}/webapps/gcube-{{ gcube_oauth_name }}' + - '{{ smartgears_instance_path }}/webapps/gcube-{{ gcube_oauth_name }}.{{ gcube_oauth_extension }}' become: True become_user: '{{ d4science_user }}'