On 22.06.2017 00:21, Oğuz Yarımtepe 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

If you are logging in as root you don't need become to root.


# 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?

If the password is correct this should work.
So is the passwword correct?
Make sure your script add a new line at the end.

--
Kai Stian Olstad

--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ac074a1a1c8ec8f1390993c3173876b9%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to