Skip to content
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

[PR #2080/044b8d8a backport][stable-8] Fix aws_ssm when Powershell uses CLIXML #2217

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Jan 24, 2025

This is a backport of PR #2080 as merged into main (044b8d8).

SUMMARY

This PR adds the code suggested by @PatrickV-code on #1952

In short, connection to Windows based EC2 instances using aws_ssm connection and using the become option of runas fails every job.
The job itself actually finishes, but as Powershell 5 adds additional wrapping with CLIXML information.
Which makes the output unreadable for Ansible.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

aws_ssm

SUMMARY

This PR adds the code suggested by @PatrickV-code on #1952

In short, connection to Windows based EC2 instances using aws_ssm connection and using the become option of runas fails every job.
The job itself actually finishes, but as Powershell 5 adds additional wrapping with CLIXML information.
Which makes the output unreadable for Ansible.

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

aws_ssm

Reviewed-by: Markus Bergholz <git@osuv.de>
Reviewed-by: Alina Buzachis
Reviewed-by: Bikouo Aubin
(cherry picked from commit 044b8d8)
Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/76343c5894194ccfbb3fdaee569748f5

ansible-galaxy-importer FAILURE in 4m 35s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 44s
✔️ ansible-test-splitter SUCCESS in 5m 07s
integration-community.aws-1 FAILURE in 13m 24s
integration-community.aws-2 FAILURE in 12m 28s
integration-community.aws-3 FAILURE in 11m 45s
integration-community.aws-4 FAILURE in 14m 21s
integration-community.aws-5 FAILURE in 13m 23s
integration-community.aws-6 FAILURE in 10m 24s
integration-community.aws-7 FAILURE in 11m 14s
integration-community.aws-8 FAILURE in 12m 36s
integration-community.aws-9 FAILURE in 10m 55s
integration-community.aws-10 FAILURE in 14m 40s
✔️ integration-community.aws-11 SUCCESS in 5m 34s
Skipped 11 jobs

@abikouo abikouo closed this Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants