gcube-oauth: Manage the app removal correctly.

This commit is contained in:
Andrea Dell'Amico 2017-09-14 18:25:35 +02:00
parent 7e6dc2efc4
commit c2988484c5
1 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,10 @@
--- ---
- block: - block:
- name: Remove the old gcube oauth files - 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: True
become_user: '{{ d4science_user }}' become_user: '{{ d4science_user }}'