From bdd8d9bc86a179757a43072b6ca0107768047fdc Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 16 Mar 2017 20:30:29 +0100 Subject: [PATCH] library/roles/smartgears/r_connector/tasks/main.yml: Change some tasks to not fail when the remote_user is not root. --- smartgears/r_connector/tasks/main.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/smartgears/r_connector/tasks/main.yml b/smartgears/r_connector/tasks/main.yml index 026e56c..18418d5 100644 --- a/smartgears/r_connector/tasks/main.yml +++ b/smartgears/r_connector/tasks/main.yml @@ -17,10 +17,9 @@ unarchive: copy=no src={{ smartgears_user_home }}/{{ r_connector_filename }} dest={{ smartgears_instance_path }}/webapps/{{ r_connector_name }} args: creates: '{{ smartgears_instance_path }}/webapps/{{ r_connector_name }}/WEB-INF/web.xml' - - name: Obtain the permission to read the Rstudio secure cookie key - become: False + become_user: root file: dest={{ r_connector_rstudio_cookie_key }} mode=640 group={{ smartgears_user }} - name: Install the R connector web.xml template @@ -28,11 +27,11 @@ notify: Restart smartgears - name: Install the R add users script - become: False + become_user: root template: src=rusersadd.j2 dest={{ r_connector_adduserscript }} owner=root group=root mode=0555 - name: Crete the directory that will host the RConfiguration stuff - become: False + become_user: root file: dest={{ r_connector_rprofile_base_dir }} owner={{ d4science_user }} group={{ d4science_user }} state=directory - name: Get the svn repository that provides the .Rprofile