[ansible-project] Using new SSH password when running task

2018-02-22 Thread Cody Harlow
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 c

[ansible-project] Re: Using new SSH password when running task

2018-02-22 Thread Cody Harlow
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 meth

Re: [ansible-project] Using new SSH password when running task

2018-02-23 Thread Cody Harlow
So I guess this turns into a question of can I start a new SSH connection when it runs a new play? On Friday, February 23, 2018 at 9:25:59 AM UTC-5, Kai Stian Olstad wrote: > > On Friday, 23 February 2018 00.54.31 CET Cody Harlow wrote: > > So I have a role that pulls a password fr

Re: [ansible-project] Using new SSH password when running task

2018-02-23 Thread Cody Harlow
So I guess this turns into a question of can I start a new SSH connection with a new password and user when it runs a new play? On Friday, February 23, 2018 at 9:25:59 AM UTC-5, Kai Stian Olstad wrote: > > On Friday, 23 February 2018 00.54.31 CET Cody Harlow wrote: > > So I have