There is an error when trying to execute PowerShell causing the process to 
stop and subsequently close the stdin pipe that Ansible is writing to. Can 
you run with a higher verbosity so that Ansible shows the full stdout and 
stderr from the process (-vvvvvv). That will output the full error message 
which you can then subsequently remove the \u0000 as the text is UTF-16 
encoded. This should give you a reason as to why the process has failed.

On Tuesday, September 29, 2020 at 9:17:35 AM UTC+10 i255d wrote:

> I have been working on this for days, and I feel like I am close.  Any 
> ideas what is causing this???
>
>
>     amazon-ebs: PLAYBOOK: playbook.yml 
> *********************************************************
>     amazon-ebs: 1 plays in /codebuild/output/src610977066/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/src610977066/src/
> git.nylcloud.com/Cloud-Team/packer-aws-nyl-win2016/playbook.yml:2
>     amazon-ebs: redirecting (type: modules) ansible.builtin.setup to 
> ansible.windows.setup
>     amazon-ebs: Using module file 
> /root/.pyenv/versions/3.8.3/lib/python3.8/site-packages/ansible_collections/ansible/windows/plugins/modules/setup.ps1
>     amazon-ebs: Pipelining is enabled.
>     amazon-ebs: <10.184.21.20> ESTABLISH WINRM CONNECTION FOR USER: 
> Administrator on PORT 5986 TO 10.184.21.20
>     amazon-ebs: EXEC (via pipeline wrapper)
>     amazon-ebs: [WARNING]: ERROR DURING WINRM SEND INPUT - attempting to 
> recover: WinRMError
>     amazon-ebs: The pipe is being closed.  (extended fault data: 
> {'transport_message': 'Bad
>     amazon-ebs: HTTP response returned from server. Code 500', 
> 'http_status_code': 500,
>     amazon-ebs: 'wsmanfault_code': '232', 'fault_code': 's:Receiver', 
> 'fault_subcode':
>     amazon-ebs: 'w:InternalError'})
>     amazon-ebs: fatal: [default]: FAILED! => 
> {00s\u0000t\u0000a\u0000l\u0000l\u0000e\u0000d\u0000.\u0000\r\u0000\n\u0000"
>     amazon-ebs: }
>     amazon-ebs:
>     amazon-ebs: PLAY RECAP 
> *********************************************************************
>     amazon-ebs: default                    : ok=0    changed=0    
> unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
>     amazon-ebs:
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6d6ea450-a6d4-4765-bb67-71497d232e56n%40googlegroups.com.

Reply via email to