Rocket.Chat.Ansible
Rocket.Chat.Ansible copied to clipboard
become_user / Check for adequate privilege escalation rights
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.