library/roles/rstudio-server library/roles/smartgears/r_connector/handlers/main.yml: some cleanup.

This commit is contained in:
Andrea Dell'Amico 2017-03-20 23:57:19 +01:00
parent de9a69c7c5
commit c4b66615d0
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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