Re: [ansible-project] Connecting to a WinRM host with different credentials?

2020-02-23 Thread Dave York
That was what I was looking for. Thanks Jordan/Tom On Sunday, February 23, 2020 at 10:52:47 AM UTC-8, Jordan Borean wrote: > > Further to the above, those are variables and not attributes you can set > on a play. You need to set them under your the vars key or just add them > using add_host in

Re: [ansible-project] Connecting to a WinRM host with different credentials?

2020-02-23 Thread Jordan Borean
Further to the above, those are variables and not attributes you can set on a play. You need to set them under your the vars key or just add them using add_host in the previous play. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

Re: [ansible-project] Connecting to a WinRM host with different credentials?

2020-02-23 Thread Tom Van de Velde
Hi, According to doc it should be ansible_user: LocalUsername ansible_password: Password ansible_connection: winrm ansible_winrm_transport: basic Regards Tom > On 23 Feb 2020, at 05:42, Dave York wrote: > >  > I have a playbook in which I want to create a random password and use it > later

[ansible-project] Connecting to a WinRM host with different credentials?

2020-02-22 Thread Dave York
I have a playbook in which I want to create a random password and use it later to connect to a windows box over WinRM I've generated a random password like this: - name: Generate a temporary random password for new host set_fact: randopass: "{{ lookup('password', '/dev/null