library/roles/smartgears/r_connector/tasks/main.yml: Change some tasks to not fail when the remote_user is not root.

This commit is contained in:
Andrea Dell'Amico 2017-03-16 20:30:29 +01:00
parent 5839530ebc
commit bdd8d9bc86
1 changed files with 3 additions and 4 deletions

View File

@ -17,10 +17,9 @@
unarchive: copy=no src={{ smartgears_user_home }}/{{ r_connector_filename }} dest={{ smartgears_instance_path }}/webapps/{{ r_connector_name }} unarchive: copy=no src={{ smartgears_user_home }}/{{ r_connector_filename }} dest={{ smartgears_instance_path }}/webapps/{{ r_connector_name }}
args: args:
creates: '{{ smartgears_instance_path }}/webapps/{{ r_connector_name }}/WEB-INF/web.xml' creates: '{{ smartgears_instance_path }}/webapps/{{ r_connector_name }}/WEB-INF/web.xml'
- name: Obtain the permission to read the Rstudio secure cookie key - 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 }} file: dest={{ r_connector_rstudio_cookie_key }} mode=640 group={{ smartgears_user }}
- name: Install the R connector web.xml template - name: Install the R connector web.xml template
@ -28,11 +27,11 @@
notify: Restart smartgears notify: Restart smartgears
- name: Install the R add users script - 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 template: src=rusersadd.j2 dest={{ r_connector_adduserscript }} owner=root group=root mode=0555
- name: Crete the directory that will host the RConfiguration stuff - 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 file: dest={{ r_connector_rprofile_base_dir }} owner={{ d4science_user }} group={{ d4science_user }} state=directory
- name: Get the svn repository that provides the .Rprofile - name: Get the svn repository that provides the .Rprofile