Could you please advise how
usera@serverX:~> sudo su - userb Last login: Fri Nov 17 15:46:48 CET 2017 on pts/1 -bash-4.2$
(note that no password requested above)
translates into ansible ?
More specifically, I would like to login to linux server X as usera
then become userb
(with the command above), and then execute all the tasks defined in the playbook as userb
The following are configuration options in ansible.cfg
:
sudo_user = root
#ask_sudo_pass = True
#ask_pass = True
#remote_user = root
#become=True
#become_method=sudo
#become_user=root
#become_ask_pass=False
I am having trouble understanding the difference between the above configuration options.
Niko