Search code examples
ansibleimpersonationsu

Ansible sx su - impersonation


Does anybody have an idea how to execute a playbook on a RHEL machine with sx su - impersonation?

Ansible only provides sudo out of the box but we cannot use sudo as we are using Boks ssh. Does anybody have an idea how to tackle this?


Solution

  • Ansible privilege escalation is documented: http://docs.ansible.com/ansible/become.html

    It mentions you cannot combine methods.