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 <[email protected]> wrote:
> 
> 
> 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 length=15 
> chars=ascii_letters') }}"
> 
> I set the admin password with vmware_guest os customization:
>       customization:
>         password: '{{ randopass }}'
>         timezone: 004
> 
> Then - I'm trying to use:
> - hosts: 'hostname.internal.domain.com'
>   connection: winrm
>   port: 5985
>   remote_user: Administrator
>   remote_pass: '{{ randopass }}'
>   gather_facts: yes
> 
> I've tried "remote_password, remote_pass, ansible_pass, ansible_password" and 
> I get an error message like this:
> 
> ERROR! 'remote_pass' is not a valid attribute for a Play
> 
> 
> What can I use for this part of the play to connect as a different 
> user/password?
> 
> I'm using ansible tower if it matters
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/4aa02718-fd41-4efa-9023-01b53d77ec3a%40googlegroups.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/52C6D51A-0EF7-49C8-9C2E-CD80F181BF49%40gmail.com.

Reply via email to