Hi,
I’ve been learning Ansible and have run into a behavior that causes problems with the server setup here at work. I’m wondering if there’s a way to fix it.
On our server I have to run certain commands as an admin user. But I can’t just switch users with ‘su superuser’. I have to execute su with sudo. So, ‘sudo su superuser’.
If I do:
ansible all -a “whoami” -R superuser
Then the command hangs, as the server is asking for a password, which I do not have.
And if I do:
ansible all -a “whoami” -s -R superuser
I get the error message about trying to combine sudo and su.
Do I have options?
Thanks,
Ian