-1

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?

bbaassssiiee
  • 6,013
  • 2
  • 42
  • 55
Marco van Dam
  • 97
  • 1
  • 2
  • 8

2 Answers2

1

Actually you can! Ansible.cfg has a flax where you can use sx su as a become method

Marco van Dam
  • 97
  • 1
  • 2
  • 8
0

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

It mentions you cannot combine methods.

bbaassssiiee
  • 6,013
  • 2
  • 42
  • 55
  • Can you share how the boks configuration (sx su - ) looks like, am still not able to figure it out. Also how the password is supplied for the – Jay Dec 08 '17 at 13:26