Re: [ansible-project] Privilege escalation not working

2018-04-08 Thread Kaushik Gosar
Hi Kai, After posting this question, I went through the Ansible documentation again. It's working after using the -b and -K option as I have not configured passwordless sudo. Thanks for the reply. -- Kaushik On Monday, April 9, 2018 at 1:08:56 AM UTC+5:30, Kai Stian Olstad wrote: > > On

[ansible-project] Re: Boto(ec2) documentation confusing, ec2_vpc_net_facts

2018-04-08 Thread Joaquin Menchaca
*filters:* * isDefault: "true"* As per https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html is_default is not correct. On Wednesday, March 2, 2016 at 8:38:04 AM UTC-8, Stephen Granger wrote: > > I spent some time trying to use this module and had

[ansible-project] How to respond to prompts with pywinrm / Ansible when using win_chocolatey?

2018-04-08 Thread Johnson Johnson
How to respond to prompts with pywinrm / Ansible when using win_chocolatey? I am installing the android-sdk kit / module with chocolatey and get prompted to accept the license (y/n), but have no way to use the expect module with windows unless I am mistaken? Thanks in advance! John -- You

Re: [ansible-project] [SOLVED] Re: How to load variables for a tagged role?

2018-04-08 Thread Kai Stian Olstad
On Saturday, 7 April 2018 14.27.58 CEST Karl Auer wrote: > Possibly bad form to reply to one's own query, but I think I worked it out. It's not, it's encouraged when you have an answer. People don't waste time answering and other might have the same question also get an answer, so it's a win

Re: [ansible-project] Find module results not returning as expected

2018-04-08 Thread Kai Stian Olstad
On Saturday, 7 April 2018 14.50.44 CEST Gabriel Forster wrote: > Using the find module to find unknown files in a given directory and > register the results as a variable to be looped through later on. The debug > of the registered var shows a full on array of all kinds of attributes > about

Re: [ansible-project] Privilege escalation not working

2018-04-08 Thread Kai Stian Olstad
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:~$ ansible all -a "cat /etc/shadow" -u kaushik >

Re: [ansible-project] Privilege escalation not working

2018-04-08 Thread Andrew Latham
Mobile right now, but looks like you need a become method and or become user. On Sun, Apr 8, 2018, 11:57 AM Kaushik Gosar wrote: > Hi, > > I am trying to execute an Ad-Hoc command which requires sudo privileges on > a remote machine. > > Below is the command and the

[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: