From c2988484c54cb837e07c1dbf645e8f9cb7869cf9 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 14 Sep 2017 18:25:35 +0200 Subject: [PATCH] gcube-oauth: Manage the app removal correctly. --- smartgears/gcube-oauth/tasks/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }}'