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

Fix deprecated xfreerdp option for winrm targets of EC2 plugin #292

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

Thomas-McKanna
Copy link
Contributor

Using the molecule login command with the Molecule EC2 plugin and a Windows target (winrm connection method) fails with the error:

[16:20:02:648] [83832:f0258240] [ERROR][com.winpr.commandline] - [log_error]: Failed at index 4 [/cert-tofu]: Unexpected keyword

The docs for FreeRDP state that the cert-tofu CLI option has been deprecated and changed to cert:tofu. This option skips the certificate validation step, which may sense for this use case. See https://manpages.debian.org/unstable/freerdp2-x11/xfreerdp.1.en.html.

I tested my fix locally, and changing /cert-tofu to /cert:tofu fixed the issue. I am running molecule on an M4 macbook with FreeRDP version 3.10.2.

Copy link
Member

@apatard apatard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I got it right, it has been supported since 2020 so I guess it's fine to assume that everyone is using a xfreerdp with this option.

@apatard apatard added bug Something isn't working ec2 Amazon EC2 labels Jan 22, 2025
@apatard apatard merged commit 3252e87 into ansible-community:main Jan 22, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ec2 Amazon EC2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants