diff --git a/rstudio-server/tasks/main.yml b/rstudio-server/tasks/main.yml index a59f30df..abf7d66f 100644 --- a/rstudio-server/tasks/main.yml +++ b/rstudio-server/tasks/main.yml @@ -18,7 +18,7 @@ when: ( rstudio_download | changed ) - 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 + shell: RETVAL='' ; if [ -x /usr/sbin/apparmor_status ] ; then APPARMOR_STATE=$( /usr/sbin/apparmor_status ) ; RETVAL=$? ; if [ $RETVAL -eq 0 ] ; then aa-complain /usr/lib/rstudio-server/bin/rserver ; fi ; fi when: rstudio_enabled - name: Ensure that rstudio server is enabled and running