I should mention that I call the variable using hostvars['localhost']['varname']['json']['password']. On Thursday, February 22, 2018 at 6:54:31 PM UTC-5, Cody Harlow wrote: > > So I have a role that pulls a password from a website using the uri method > and I store it in a variable. I call the variable like this: > varname.json.password. How can I use this password when Ansible jumps to > the next play? I tried setting ansible_user and ansible_ssh_pass as > variables, and I can see it change the user but it always rejects the > password. Am I missing something simple, or can this not be done? I've hard > coded the password and it's worked before but it appears when I try to call > the variable, something isn't passing properly. >
-- 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/a79a907b-53ad-48ad-b5c5-76301d572e54%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
