From 49be6b992dc02df6e0b13e836e1e63556caced0a Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 21 Jun 2016 20:41:38 +0200 Subject: [PATCH] library/roles/smartgears/smartgears/tasks/smartgears-app.yml: Fix the shell command that set the permissions. --- smartgears/smartgears/tasks/smartgears-app.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smartgears/smartgears/tasks/smartgears-app.yml b/smartgears/smartgears/tasks/smartgears-app.yml index 8458025d..462a770f 100644 --- a/smartgears/smartgears/tasks/smartgears-app.yml +++ b/smartgears/smartgears/tasks/smartgears-app.yml @@ -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' ]