forked from ISTI-ansible-roles/ansible-roles
library/roles/smartgears/fhn_manager: Add the egi/voms and egi/occi roles as dependencies.
This commit is contained in:
parent
37b22b5f6b
commit
aa883e90b2
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
dependencies:
|
||||||
|
- role: '../../library/roles/egi/voms'
|
||||||
|
- role: '../../library/roles/egi/occi'
|
|
@ -1,29 +1,36 @@
|
||||||
---
|
---
|
||||||
- block:
|
- block:
|
||||||
|
|
||||||
- name: Remove the old smart executor files if present
|
- name: Remove the old smart executor files if present
|
||||||
file: path={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }} state=absent
|
file: path={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }} state=absent
|
||||||
when: ( not smart_executor_install ) or ( smartgears_upgrade )
|
|
||||||
|
|
||||||
|
become: True
|
||||||
|
become_user: '{{ d4science_user }}'
|
||||||
|
when: ( not smart_executor_install ) or ( smartgears_upgrade )
|
||||||
|
tags: [ 'smartgears', 'fhn_manager', 'tomcat' ]
|
||||||
|
|
||||||
|
- block:
|
||||||
- name: Remove the old fhn-manager files
|
- name: Remove the old fhn-manager files
|
||||||
file: path={{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }} state=absent
|
file: path={{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }} state=absent
|
||||||
when: ( remove_fhn_manager_install ) or ( smartgears_upgrade )
|
|
||||||
|
|
||||||
|
become: True
|
||||||
|
become_user: '{{ d4science_user }}'
|
||||||
|
when: ( remove_fhn_manager_install ) or ( smartgears_upgrade )
|
||||||
|
tags: [ 'smartgears', 'fhn_manager', 'tomcat' ]
|
||||||
|
|
||||||
|
|
||||||
|
- block:
|
||||||
# NOTE: Install as the smartgears user so we do not mess with the permissions
|
# NOTE: Install as the smartgears user so we do not mess with the permissions
|
||||||
- name: Get the fhn-manager-service
|
- name: Get the fhn-manager-service
|
||||||
get_url: url={{ fhn_manager_url }} dest={{ smartgears_user_home }}/{{ fhn_manager_file }}
|
get_url: url={{ fhn_manager_url }} dest={{ smartgears_user_home }}/{{ fhn_manager_file }}
|
||||||
when: fhn_manager_install
|
|
||||||
|
|
||||||
- name: Create the fhn manager working directory
|
- name: Create the fhn manager working directory
|
||||||
file: path={{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}
|
file: path={{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}
|
||||||
when: fhn_manager_install
|
|
||||||
|
|
||||||
- name: Unarchive the fhn_manager war
|
- name: Unarchive the fhn_manager war
|
||||||
unarchive: copy=no src={{ smartgears_user_home }}/{{ fhn_manager_file }} dest={{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }} creates={{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }}/WEB-INF/lib
|
unarchive: copy=no src={{ smartgears_user_home }}/{{ fhn_manager_file }} dest={{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }} creates={{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }}/WEB-INF/lib
|
||||||
when: fhn_manager_install
|
|
||||||
notify: Restart smartgears
|
notify: Restart smartgears
|
||||||
|
|
||||||
become: True
|
become: True
|
||||||
become_user: '{{ d4science_user }}'
|
become_user: '{{ d4science_user }}'
|
||||||
|
when: fhn_manager_install
|
||||||
tags: [ 'smartgears', 'fhn_manager', 'tomcat' ]
|
tags: [ 'smartgears', 'fhn_manager', 'tomcat' ]
|
||||||
|
|
Loading…
Reference in New Issue