Hi,

   I think it's timing out because of the spawn. Use 'set timeout -1' before 
the spawn command. That should solve the issue.

Thanks,
Madhu 

Sent from my iPhone

> On Jun 21, 2017, at 3:21 PM, Oğuz Yarımtepe <oguzyarimt...@gmail.com> wrote:
> 
> Great tip. 
> 
> Here is my folder structure:
> 
> group_vars/all
> 
> some_playbook/playbook.yml
> 
> inventory_file
> 
> 
> $ ansible-playbook -i inventory_file some_playbook/playbook.yml --become-user 
> root --become-method sudo --become
> 
> 
> # cat group_vars/all 
> ---
> ansible_ssh_pass: "{{lookup('pipe', '/usr/local/bin/passwordrelease', 
> allow_unsafe=True)}}"
> ansible_user: root
> ansible_connection: ssh
> 
> /usr/local/bin/passwordrelease is echoing the password
> 
> This didn't work. When i check with -vvvvv i can see it is trying to connect 
> via root but, i got authentication error. 
> Any idea?
> 
> 
>> On Wed, Jun 21, 2017 at 8:36 PM, Brian Coca <bc...@ansible.com> wrote:
>> use a lookup?
>> 
>> --------
>> Brian Coca
>> 
>> --
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Ansible Project" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/ansible-project/4vt1Buz9u8A/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> ansible-project+unsubscr...@googlegroups.com.
>> To post to this group, send email to ansible-project@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/CACVha7fE3gXviKZyynV9xKY_myec1ND%2BYWHMcuSqyG61RbuH7g%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
> 
> 
> 
> -- 
> Oğuz Yarımtepe
> http://about.me/oguzy
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/CAKtWOTTdO3860t0wSCVjxHK5X0oFtME3ukwJSuuU8Syw9muO7w%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/AB233546-73AA-43DB-925A-70EB847E4FC9%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to