-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_ssm connection plugin fails when used with Ansible 2.9.23 #667
Comments
Commenting as I wish to follow this issue :) |
@MrBones757, I believe, it's not related to can you try to use https://docs.ansible.com/ansible/2.9/modules/win_shell_module.html windows specific module for this purpose? |
…llections#667) Bring changelog changes of amazon.aws 3.1.0 from stable-3 SUMMARY Since the prep PR has been merged ansible-collections#664, let's bring changelog changes of amazon.aws 3.1.0 from stable-3. Reviewed-by: Mark Chappell <None> Reviewed-by: Markus Bergholz <[email protected]>
Hi, I didn't see the response to this issue.. as per the documentation: As i understand it though, the error seems to be to do with how the response is being parsed from the connection plugin, that is, the PowerShell executor is receiving data from the aws_ssm connection plugin that is not valid. we are in the process of moving to newer ansible versions (2.12), I intend on testing this issue again to see if the issue remains, or if it has been fixed somewhere along the line. |
I'm sorry it's taken so long to respond to this issue. Ansible 2.9 is no longer supported. Additionally a number of bugfixes have just landed with release 5.2.0 (including wrt Windows) I'm going to close this issue. However if you're able to reproduce the issue with the newer versions of Ansible and the collection, please feel free to reopen it and we can try to figure out what's going on. |
Summary
When running a script task (powershell script) against a windows host, an error is returned complaining about an invalid payload.
Issue Type
Bug Report
Component Name
aws_ssm.py
script
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
Custom AWX EE based on: 'docker.rwwa.com.au/ansible/ansible-runner:stable-2.9-devel'
Linux automation-job-64921-pshc9 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Steps to Reproduce
test.ps1 contains only "Write-Host 'hello word'"
it is assumed the host vars of the targeted host, or some other source has the required parameters for connection plugin usage (credentials, bucket, region etc)
Expected Results
Script executes and job succeeds
Actual Results
Error is being thrown from:
https://github.com/ansible/ansible/blob/2cbfd1e350cbe1ca195d33306b5a9628667ddda8/lib/ansible/executor/powershell/bootstrap_wrapper.ps1
this line
appears to be the culprit, though im not really sure what this is trying to achieve.
If i enable connect debugging i see the below a few lines above the failure, along with some nomral encoded commands, not sure if this is the issue though. (could this be looking for a 4 element array but we are returning only 3 in aws_ssm or something like that)
(0, '', '')
Code of Conduct
The text was updated successfully, but these errors were encountered: