diff --git a/smartgears/smartgears/defaults/main.yml b/smartgears/smartgears/defaults/main.yml index 4deb22b..96281e6 100644 --- a/smartgears/smartgears/defaults/main.yml +++ b/smartgears/smartgears/defaults/main.yml @@ -28,6 +28,7 @@ smartgears_name: smartgears-distribution smartgears_group_id: org.gcube.distribution smartgears_extension: tar.gz smartgears_file: '{{ smartgears_name }}-{{ smartgears_distribution_version }}.{{ smartgears_extension }}' +smartgears_skip_get_scopes: False smartgears_mode: online smartgears_application_mode: online diff --git a/smartgears/smartgears/tasks/smartgears-app.yml b/smartgears/smartgears/tasks/smartgears-app.yml index 70c1722..b0d67bb 100644 --- a/smartgears/smartgears/tasks/smartgears-app.yml +++ b/smartgears/smartgears/tasks/smartgears-app.yml @@ -149,6 +149,7 @@ become_user: '{{ smartgears_user }}' shell: /usr/local/bin/get-scopes {{ gcube_admin_token | default('') }} notify: Restart smartgears + when: not smartgears_skip_get_scopes tags: [ 'smartgears', 'smartgears_distribution', 'smartgears_conf', 'tomcat' ] - name: Remove the smartgears application state if requested