Without seeing your playbook I don't know how you are trying to do it but 
Ansible is trying to connect to localhost with the PowerShell plugin. 
Usually you need to run the provisioning tasks in 1 play and then the 
Windows tasks in a separate play. An example of how I did this can be seen 
here 
https://github.com/jborean93/ansible-win-demos/blob/master/ec2-win-ami/main.yml.
 
The first play provisions the host in AWS and then adds it into the windows 
group. The 2nd play then runs on the Windows group which seems to be what 
you want.

Thanks

Jordan

-- 
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/6a11597c-08e3-4be5-99a3-5a693c0c84de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to