I think I found the problem and I think it's a bug.

I have an inventory file that looks like this:

[web-servers]
  www.domain1.com
  www.domain2.com
  www.one-off.com
  www.domain3.com
  www.domain4.com

Once ansible hits the www.one-off.com every www.domainX.com after that has 
sudo authentication failure. If I comment out www.one-off.com everything 
works as expected (no hangs).

What's different with www.one-off.com? It has a different (one-off) sudo 
password.

hosts_vars/www.one-off.com.yml

---
ansible_ssh_pass: different-sudo-password
ansible_sudo_pass: different-sudo-password

ONCE www.one-off.com is played it seems like the sudo password from the 
command line is lost.

$ ansible-playbook --ask-pass --ask-sudo -i web web-servers.yml
SSH password:
sudo password [defaults to SSH password]:

The prompted for passwords (above) are what I call the defaults but the 
www.one-off.com has a different sudo password gotten from the hosts_vars 
file and any host listed after the www.one-off.com fails (unusable hangs).

-- 
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/ad4fcb79-cd3e-4916-ba99-d52a7bdee2ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to