Acknowledged. I've been trying to stick with Kerberos now, but STILL having issues..
The machine credentials I use are [email protected] and right after vmware_guest builds the VM, I try to continue on but now I get: kerberos: the specified credentials were rejected by the server, plaintext: the specified credentials were rejected by the server However, I still see the same behavior.. I get that error, and minutes later I can run the job again and get past it. I'm able to logon to the server right after vwmare_guest finishes with the service account.. pullin my hair out here, not sure whats going on On Friday, February 28, 2020 at 10:13:52 AM UTC-8, Dave York wrote: > > Hi Ansible Community! > > I have a playbook running against windows servers. I have one play where > I'm connecting as the local administrator, then a second play where I'm > connecting as a domain user. I'm confused on how to do this. I'm running > from Ansible Tower so I have the domain user as the machine credentials > applied. > > How do I tell the second play to use the domain account (machine > credentials) after telling the first play to use the local admin account? > Any help appreciated, im pretty new to Ansible. > > - hosts: serverA.internal.domain > vars: > ansible_user: Administrator > ansible_password: XXXXXXXXXXXX > gather_facts: no > connection: winrm > port: 5985 > > tasks: > - debug: > var: hostvars[inventory_hostname] > verbosity: 1 > > > - hosts: serverA.internal.domain > vars: > ansible_user: ??machine credential?? > ansible_password: XXXXXXXXXXXX > gather_facts: no > connection: winrm > port: 5985 > > > -- 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/d31230f2-047b-45d5-84c9-b099887b50ea%40googlegroups.com.
