Re: [ansible-project] Without sudo, is it possible to manage multiple become users with distinct passwords?

2017-02-09 Thread Johannes Kastl
On 08.02.17 05:10 ednoto...@gmail.com wrote: > - hosts: localhost > tasks: > - command: whoami > register: who_is_user1 > become: true > become_user: user1 I think you could set a become_password at this point. become_password: foobar Instead of using cleartext it might be better

[ansible-project] Without sudo, is it possible to manage multiple become users with distinct passwords?

2017-02-09 Thread ednotover
Apologies in advance if this issue has been answered already. My searches came up empty. I have a playbook that uses multiple become users on each host. I'd like to have the playbook work with whatever become method the caller wants to use. I know the caller can use connection variables to