-
Notifications
You must be signed in to change notification settings - Fork 398
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 - Windows Update Invalid Literal For Int #1751
Comments
I thought it would be important to include the vars for the target host as well as the fact that the connection module is working as expected on all our Linux distros and on other Windows tasks. acctXXXXXXXXXXXX: |
This looks a lot like #113 which has been fixed. You currently have 3 copies of the plugin installed.
Please try uninstalling the old copies of the plugin, I suspect one of the 1.5.0 copies is being used rather than 5.3.0. |
Same error. Here's the ansible-galaxy collection list output after the changes:
|
In that case, please include the output when running ansible-playbook adding the |
We also had a report (#1725) which seems to imply things don't behave properly when the "host" (Windows machine) has an old version of the SSM Client installed. |
SSM version is 3.2.582.0 which is latest |
I'm not allowed to post all this encoded data on a public forum. Are there any particular snippets you're looking for that I could sanitize and post? |
The first thing I'm looking for is the format of the logging (some of this changed in 5.2), since there were multiple copies lurking I just want to double check that we're using the copy we think we are. Since the action's trying to pop the final line, I'd guess data's either being truncated, or isn't being split properly by "splitlines". But since I'm not familiar with the ansible.windows collection I'm not sure what data it's actually expecting to see. The code that's throwing an error can be found at https://github.com/ansible-collections/ansible.windows/blob/main/plugins/action/win_updates.py#L978 The code that's processing the output of the "host" side plugin before it gets passed back to the action is https://github.com/ansible-collections/community.aws/blob/stable-5/plugins/connection/aws_ssm.py#L522 |
Cleanup after renamed plugins SUMMARY Prior to 5.0.0 we renamed various modules. Cleanup the integration tests (and some docs). ISSUE TYPE Docs Pull Request COMPONENT NAME tests/integration ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis
Summary
I am attempting to run ansible.windows.win_updates on a Windows 2019 EC2 instance using the ssm connection plugin. When I do so, I get:
Issue Type
Bug Report
Component Name
aws_ssm.py
Ansible Version
Collection Versions
AWS SDK versions
Configuration
No output
OS / Environment
Amazon Linux 2 ansible workstation
Windows Server 2019 target host
Steps to Reproduce
Expected Results
I expect the machine to patch
Actual Results
The task fails:
Code of Conduct
The text was updated successfully, but these errors were encountered: