Re: [ansible-project] Re: Ansible SSH as one user and Sudo as another

2017-09-05 Thread prakash ranjan
Hi, This is what I'm getting:- Working without sudo. But not with sudo option. ansibledir$ ansible all -m command -a 'whoami' | SUCCESS | rc=0 >> pranjan ansibledir$ ansible all -m command -a 'whoami' --sudo -K SUDO password: | FAILED! => { "changed": false, "failed": true,

Re: [ansible-project] Re: Permissions issue, cannot become root

2017-08-11 Thread prakash ranjan
I am also facing the same issue. tried several options but no solution. Unable to take privilege of "sudo su -". This is content of my playbook. Commented ones shows that I have tried those options. I have also tried many options with command lines. --- - hosts: all # remote_user: root #