forked from ISTI-ansible-roles/ansible-roles
dataminer: separate the algorithm installer from the algorithm updater. Install the algorithm installer on che core nlp VM.
This commit is contained in:
parent
bdd0f79252
commit
86d22d6e75
|
@ -2,6 +2,7 @@
|
|||
dataminer_app_install: False
|
||||
dataminer_app_upgrade: False
|
||||
dataminer_algorithms_installer: True
|
||||
dataminer_algorithms_updater: True
|
||||
|
||||
# ZIP file
|
||||
dataminer_product: prod
|
||||
|
|
|
@ -46,9 +46,14 @@
|
|||
|
||||
- name: Unarchive the algorithms installer
|
||||
unarchive: copy=no src={{ smartgears_downloads_dir }}/{{ dataminer_algorithms_file }} dest={{ smartgears_user_home }} creates='{{ smartgears_user_home }}/algorithmInstaller/addAlgorithm.sh'
|
||||
notify: Restart smartgears
|
||||
tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_algorithms', 'dataminer_algorithms_installer' ]
|
||||
|
||||
become: True
|
||||
become_user: '{{ smartgears_user }}'
|
||||
when: dataminer_algorithms_installer
|
||||
tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_algorithms', 'dataminer_algorithms_installer' ]
|
||||
|
||||
- block:
|
||||
- name: Create a directory where to install the algorithms updater logs and data
|
||||
file: path={{ smartgears_user_home }}/wps_algorithms_install_log state=directory
|
||||
tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_algorithms', 'dataminer_algorithms_script' ]
|
||||
|
@ -64,7 +69,7 @@
|
|||
|
||||
become: True
|
||||
become_user: '{{ smartgears_user }}'
|
||||
when: dataminer_algorithms_installer
|
||||
when: dataminer_algorithms_updater
|
||||
tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_algorithms', 'dataminer_algorithms_installer' ]
|
||||
|
||||
- block:
|
||||
|
@ -74,7 +79,7 @@
|
|||
|
||||
become: True
|
||||
become_user: '{{ smartgears_user }}'
|
||||
when: not dataminer_algorithms_installer
|
||||
when: not dataminer_algorithms_updater
|
||||
tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_algorithms', 'dataminer_algorithms_installer' ]
|
||||
|
||||
|
Loading…
Reference in New Issue