-
-
Save i255d/84220f955a019dc095452e46862beeaa to your computer and use it in GitHub Desktop.
Trying to use Packer Provisioner for Ansible, Winrm connections to Windows 2019
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> amazon-ebs: Provisioning with Ansible... | |
amazon-ebs: Not using Proxy adapter for Ansible run: | |
amazon-ebs: Using WinRM Password from Packer communicator... | |
==> amazon-ebs: Executing Ansible: ansible-playbook -e packer_build_name="amazon-ebs" -e packer_builder_type=amazon-ebs -vvv -e ansible_winrm_server_cert_validation=ignore ansible_password=***** ansible_connection=winrm ansible_winrm_transport=ntlm ansible_port=5986 ansible_shell_type=powershell -e ansible_password=***** -i /tmp/packer-provisioner-ansible262959717 /codebuild/output/src910331141/src/git.nylcloud.com/Cloud-Team/packer-aws-nyl-win2016/playbook.yml | |
amazon-ebs: ansible-playbook 2.10.1 | |
amazon-ebs: config file = /codebuild/output/src910331141/src/git.nylcloud.com/Cloud-Team/packer-aws-nyl-win2016/ansible.cfg | |
amazon-ebs: configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
amazon-ebs: ansible python module location = /root/.pyenv/versions/3.8.3/lib/python3.8/site-packages/ansible | |
amazon-ebs: executable location = /root/.pyenv/versions/3.8.3/bin/ansible-playbook | |
amazon-ebs: python version = 3.8.3 (default, Aug 28 2020, 18:43:52) [GCC 7.3.1 20180712 (Red Hat 7.3.1-9)] | |
amazon-ebs: Using /codebuild/output/src910331141/src/git.nylcloud.com/Cloud-Team/packer-aws-nyl-win2016/ansible.cfg as config file | |
amazon-ebs: host_list declined parsing /tmp/packer-provisioner-ansible262959717 as it did not pass its verify_file() method | |
amazon-ebs: script declined parsing /tmp/packer-provisioner-ansible262959717 as it did not pass its verify_file() method | |
amazon-ebs: auto declined parsing /tmp/packer-provisioner-ansible262959717 as it did not pass its verify_file() method | |
amazon-ebs: Parsed /tmp/packer-provisioner-ansible262959717 inventory source with ini plugin | |
amazon-ebs: redirecting (type: modules) ansible.builtin.win_disk_facts to community.windows.win_disk_facts | |
amazon-ebs: | |
amazon-ebs: PLAYBOOK: playbook.yml ********************************************************* | |
amazon-ebs: 1 plays in /codebuild/output/src910331141/src/git.nylcloud.com/Cloud-Team/packer-aws-nyl-win2016/playbook.yml | |
amazon-ebs: | |
amazon-ebs: PLAY [all] ********************************************************************* | |
amazon-ebs: | |
amazon-ebs: TASK [Gathering Facts] ********************************************************* | |
amazon-ebs: task path: /codebuild/output/src910331141/src/git.nylcloud.com/Cloud-Team/packer-aws-nyl-win2016/playbook.yml:2 | |
amazon-ebs: <10.184.21.14> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO 10.184.21.14 | |
amazon-ebs: EXEC (via pipeline wrapper) | |
amazon-ebs: fatal: [default]: UNREACHABLE! => { | |
amazon-ebs: "changed": false, | |
amazon-ebs: "msg": "Failed to create temporary directory.In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\", for more error information use -vvv. Failed command was: PowerShell -Version 6.2.6 -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UwBlAHQALQBTAHQAcgBpAGMAdABNAG8AZABlACAALQBWAGUAcgBzAGkAbwBuACAATABhAHQAZQBzAHQACgAkAHQAbQBwAF8AcABhAHQAaAAgAD0AIABbAFMAeQBzAHQAZQBtAC4ARQBuAHYAaQByAG8AbgBtAGUAbgB0AF0AOgA6AEUAeABwAGEAbgBkAEUAbgB2AGkAcgBvAG4AbQBlAG4AdABWAGEAcgBpAGEAYgBsAGUAcwAoACcAJQBUAEUATQBQACUAJwApAAoAJAB0AG0AcAAgAD0AIABOAGUAdwAtAEkAdABlAG0AIAAtAFQAeQBwAGUAIABEAGkAcgBlAGMAdABvAHIAeQAgAC0AUABhAHQAaAAgACQAdABtAHAAXwBwAGEAdABoACAALQBOAGEAbQBlACAAJwBhAG4AcwBpAGIAbABlAC0AdABtAHAALQAxADYAMAAxADQAMQAwADQAMAA5AC4AOAAyADYAOAA0ADMANQAtADEAMAAwADMALQAxADUANgAwADAAMwA0ADMANAAwADcAOQA5ADQAMgAnAAoAVwByAGkAdABlAC0ATwB1AHQAcAB1AHQAIAAtAEkAbgBwAHUAdABPAGIAagBlAGMAdAAgACQAdABtAHAALgBGAHUAbABsAE4AYQBtAGUACgBJAGYAIAAoAC0AbgBvAHQAIAAkAD8AKQAgAHsAIABJAGYAIAAoAEcAZQB0AC0AVgBhAHIAaQBhAGIAbABlACAATABBAFMAVABFAFgASQBUAEMATwBEAEUAIAAtAEUAcgByAG8AcgBBAGMAdABpAG8AbgAgAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAKQAgAHsAIABlAHgAaQB0ACAAJABMAEEAUwBUAEUAWABJAFQAQwBPAEQARQAgAH0AIABFAGwAcwBlACAAewAgAGUAeABpAHQAIAAxACAAfQAgAH0A, exited with result 4294574080", | |
amazon-ebs: "unreachable": true | |
amazon-ebs: } | |
amazon-ebs: | |
amazon-ebs: PLAY RECAP ********************************************************************* | |
amazon-ebs: default : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0 | |
amazon-ebs: | |
==> amazon-ebs: Provisioning step had errors: Running the cleanup provisioner, if present... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment