Hi,

I know that the ansible provisioner is only community supported, so hoping 
for help here.
I'm using packer to build a windows server image and winrm is working fine 
using these commands in the userdata to setup winrm:
(New-Object 
System.Net.WebClient).DownloadFile('https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1',
 
'c:\ConfigureRemotingForAnsible.ps1');
iex "c:\ConfigureRemotingForAnsible.ps1 -SkipNetworkProfileCheck 
-ForceNewSSLCert"

After it does some configuration without issues, so winrm seems fine for 
packer.
Now I want to run an ansible playbook to configure more software and start 
tests.
This is the provisioner:
      {
       "type": "ansible",
       "playbook_file":
         "tasks/install_software.yml",
       "user": "Administrator",
       "extra_arguments": [
       "--connection", "packer",
       "-vvv",
       "--extra-vars", "ansible_shell_type=powershell 
ansible_shell_executable=None ansible_password={{ .WinRMPassword }}"
       ]
     },

I have the packer.py connection plugin in a directory next to the playbook.
This is the error message I receive:
*ssl: the specified credentials were rejected by the server*

Let me know if I can provide more details or help with testing.

Thank you for your help!

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" 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/packer-tool/8520c85c-3aa4-4418-beea-7851ebddc0fa%40googlegroups.com.

Reply via email to