2016-06-13 16:24:30 +02:00
|
|
|
---
|
2017-02-09 16:34:42 +01:00
|
|
|
- block:
|
|
|
|
- name: Install the production gcube keys
|
2017-05-08 19:06:28 +02:00
|
|
|
get_url: url={{ item.url }} dest={{ smartgears_instance_path }}/webapps/{{ dataminer_wps_name }}/ecocfg/PARALLEL_PROCESSING/{{ item.name }} owner={{ smartgears_user }} group={{ smartgears_user }} mode=0600
|
2017-02-09 16:34:42 +01:00
|
|
|
with_items:
|
|
|
|
- '{{ gcube_prod_key_1 }}'
|
|
|
|
- '{{ gcube_prod_key_2 }}'
|
|
|
|
- '{{ gcube_prod_key_3 }}'
|
|
|
|
- '{{ gcube_prod_key_4 }}'
|
2017-03-29 17:32:05 +02:00
|
|
|
- '{{ gcube_prod_key_5 }}'
|
2017-05-02 13:48:45 +02:00
|
|
|
- '{{ gcube_prod_key_6 }}'
|
|
|
|
- '{{ gcube_prod_key_7 }}'
|
|
|
|
- '{{ gcube_prod_key_8 }}'
|
2017-02-09 16:34:42 +01:00
|
|
|
notify: Restart smartgears
|
|
|
|
when: install_gcube_prod_key
|
2016-06-13 16:24:30 +02:00
|
|
|
|
2017-02-09 16:34:42 +01:00
|
|
|
- name: Remove the production gcube keys
|
2017-05-08 19:06:28 +02:00
|
|
|
file: dest={{ smartgears_instance_path }}/webapps/{{ dataminer_wps_name }}/ecocfg/PARALLEL_PROCESSIN/{{ item.name }} state=absent
|
2017-02-09 16:34:42 +01:00
|
|
|
with_items:
|
|
|
|
- '{{ gcube_prod_key_1 }}'
|
|
|
|
- '{{ gcube_prod_key_2 }}'
|
|
|
|
- '{{ gcube_prod_key_3 }}'
|
|
|
|
- '{{ gcube_prod_key_4 }}'
|
2017-03-29 17:32:05 +02:00
|
|
|
- '{{ gcube_prod_key_5 }}'
|
2017-02-09 16:34:42 +01:00
|
|
|
notify: Restart smartgears
|
|
|
|
when: not install_gcube_prod_key
|
|
|
|
|
|
|
|
- name: Install the devel gcube keys
|
2017-05-08 19:06:28 +02:00
|
|
|
get_url: url={{ item.url }} dest={{ smartgears_instance_path }}/webapps/{{ dataminer_wps_name }}/ecocfg/PARALLEL_PROCESSING/{{ item.name }} owner={{ smartgears_user }} group={{ smartgears_user }} mode=0600
|
2017-02-09 16:34:42 +01:00
|
|
|
with_items:
|
|
|
|
- '{{ gcube_dev_key_1 }}'
|
|
|
|
- '{{ gcube_dev_key_2 }}'
|
|
|
|
- '{{ gcube_dev_key_3 }}'
|
|
|
|
notify: Restart smartgears
|
|
|
|
when: install_gcube_dev_key
|
|
|
|
|
|
|
|
- name: Remove the devel gcube keys
|
2017-05-08 19:06:28 +02:00
|
|
|
file: dest={{ smartgears_instance_path }}/webapps/{{ dataminer_wps_name }}/ecocfg/PARALLEL_PROCESSING/{{ item.name }} state=absent
|
2017-02-09 16:34:42 +01:00
|
|
|
with_items:
|
|
|
|
- '{{ gcube_dev_key_1 }}'
|
|
|
|
- '{{ gcube_dev_key_2 }}'
|
|
|
|
- '{{ gcube_dev_key_3 }}'
|
|
|
|
notify: Restart smartgears
|
|
|
|
when: not install_gcube_dev_key
|
|
|
|
|
|
|
|
- name: Install the preprod gcube keys
|
2017-05-08 19:06:28 +02:00
|
|
|
get_url: url={{ item.url }} dest={{ smartgears_instance_path }}/webapps/{{ dataminer_wps_name }}/ecocfg/PARALLEL_PROCESSING/{{ item.name }} owner={{ smartgears_user }} group={{ smartgears_user }} mode=0600
|
2017-02-09 16:34:42 +01:00
|
|
|
with_items:
|
|
|
|
- '{{ gcube_pre_key_1 }}'
|
|
|
|
notify: Restart smartgears
|
|
|
|
when: install_gcube_preprod_key
|
|
|
|
|
|
|
|
- name: Remove the preprod gcube keys
|
2017-05-08 19:06:28 +02:00
|
|
|
file: dest={{ smartgears_instance_path }}/webapps/{{ dataminer_wps_name }}/ecocfg/PARALLEL_PROCESSING/{{ item.name }} state=absent
|
2017-02-09 16:34:42 +01:00
|
|
|
with_items:
|
|
|
|
- '{{ gcube_pre_key_1 }}'
|
|
|
|
notify: Restart smartgears
|
|
|
|
when: not install_gcube_preprod_key
|
2016-07-01 12:32:24 +02:00
|
|
|
|
2017-02-09 16:34:42 +01:00
|
|
|
become: True
|
|
|
|
become_user: '{{ smartgears_user }}'
|
2016-10-05 10:37:46 +02:00
|
|
|
tags: [ 'dataminer', 'gcube_key', 'wps' ]
|