forked from ISTI-ansible-roles/ansible-roles
library/roles/smartgears/smartgears/tasks/smartgears-app.yml: Fix the shell command that set the permissions.
This commit is contained in:
parent
4f6bec7bf3
commit
49be6b992d
|
@ -40,7 +40,7 @@
|
|||
tags: [ 'smartgears', 'tomcat', 'smartgears_env' ]
|
||||
|
||||
- name: Install the smartgears app
|
||||
shell: cd {{ item.user_home }}/smartgears-distribution-{{ smartgears_distribution_version }} ; . /{{ item.user_home }}/.bashrc ; ./install -s tomcat ; chown -R gcube:gcube smartgears-distribution-{{ smartgears_distribution_version }} SmartGears/ tomcat/lib/ tomcat/webapps/
|
||||
shell: cd {{ item.user_home }}/smartgears-distribution-{{ smartgears_distribution_version }} ; . /{{ item.user_home }}/.bashrc ; ./install -s tomcat ; chown -R gcube:gcube '{{ item.user_home }}/smartgears-distribution-{{ smartgears_distribution_version }}' '{{ item.user_home }}/SmartGears/' '{{ item.user_home }}/tomcat/lib/' '{{ item.user_home }}/tomcat/webapps/'
|
||||
with_items: '{{ tomcat_m_instances }}'
|
||||
when: ( new_smartgears_distribution | changed )
|
||||
register: install_smartgears_app
|
||||
|
@ -50,7 +50,7 @@
|
|||
- name: Install the smartgears configuration file
|
||||
template: src=container.xml.j2 dest={{ smartgears_install_path }}/container.xml owner={{ item.user }} group={{ item.user }}
|
||||
with_items: '{{ tomcat_m_instances }}'
|
||||
when: not generic_worker_install
|
||||
when: generic_worker_install is not defined
|
||||
register: containerxml_state
|
||||
notify: Restart smartgears
|
||||
tags: [ 'smartgears', 'smartgears_conf', 'tomcat' ]
|
||||
|
|
Loading…
Reference in New Issue