RocketChat / Rocket.Chat.Ansible

Deploy Rocket.Chat with Ansible!
MIT License
94 stars 80 forks source link

become_user / Check for adequate privilege escalation rights #109

Open tabacha opened 4 years ago

tabacha commented 4 years ago

Hi,

the role did not work for us, because we got an assert in in the check "Check for adequate privilege escalation rights",

I analyed this further and found out, that it works when I change the shell from /bin/false to bin/bash. But it was changed back in the Task: Ensure the Rocket.Chat service user is present

After I added become_flags: '-s /bin/bash' to the task "Check for adequate privilege escalation rights",and the task Install Rocket.Chat via NPM, the role works as wanted.

I did not know what is best practise to fix this, as there are more become methods than su.