[ansible-project] Privilege escalation not working

2018-04-08 Thread Kaushik Gosar
Hi, I am trying to execute an Ad-Hoc command which requires sudo privileges on a remote machine. Below is the command and the error it throws up kaushik@Machine_1:~$ ansible all -a "cat /etc/shadow" -u kaushik --ask-become-pass SUDO password: 192.168.101.12 | FAILED | rc=1 >> cat:

Re: [ansible-project] Privilege escalation not working

2018-04-08 Thread Kaushik Gosar
: > > On Sunday, 8 April 2018 18.57.38 CEST Kaushik Gosar wrote: > > I am trying to execute an Ad-Hoc command which requires sudo privileges > on > > a remote machine. > > > > Below is the command and the error it throws up > > > > kaushik@Machine_1:~