diff --git a/rstudio-server/tasks/main.yml b/rstudio-server/tasks/main.yml index e62250b9..a2239514 100644 --- a/rstudio-server/tasks/main.yml +++ b/rstudio-server/tasks/main.yml @@ -5,7 +5,6 @@ - name: Install the apparmor utilities apt: pkg=apparmor-utils state=present update_cache=yes cache_valid_time=1800 - tags: [ 'rstudio', 'rstudio_server', 'apparmor' ] - name: Download the rstudio server deb package # get_url: url={{ rstudio_download_url }} dest=/srv/{{ rstudio_file }} @@ -22,7 +21,6 @@ - name: Change the apparmor behaviour to complain, otherwise it cannot read the nslcd socket shell: if [ -x /usr/sbin/apparmor_status ] ; then RETVAL=$( /usr/sbin/apparmor_status ) ; if [ $RETVAL -eq 0 ] ; then aa-complain /usr/lib/rstudio-server/bin/rserver ; fi ; fi when: rstudio_enabled - tags: [ 'rstudio', 'rstudio_server', 'apparmor' ] - name: Ensure that rstudio server is enabled and running service: name=rstudio-server state=started enabled=yes diff --git a/smartgears/r_connector/handlers/main.yml b/smartgears/r_connector/handlers/main.yml index 8d198b7a..34a52758 100644 --- a/smartgears/r_connector/handlers/main.yml +++ b/smartgears/r_connector/handlers/main.yml @@ -1,7 +1,11 @@ --- - name: Restart the NSLCD service service: name=nslcd state=restarted + notify: Restart rstudio server - name: Restart the NSCD service service: name=nscd state=restarted + notify: Restart rstudio server +- name: Restart rstudio server + service: name=rstudio-server state=restarted