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

Support ansible_private_key_file as well #448

Merged

Conversation

decentral1se
Copy link
Collaborator

Hi there, we received a report on ansible/molecule#2069 about Molecule failing to make an SSH connection and after a quick glance over in ansible/molecule#2069 (comment), I think I have a patch.

The short of it is, Ansible advertises that you can use both "ansible_ssh_private_key_file" and "ansible_private_key_file" for specifying SSH connection options and Molecule happens to use the "ansible_private_key_file" by default. The new Ansible runner implementation here in Testinfra (from what I can tell) does not pick this up.

Didn't dig too deeply on this but hopefully this goes in the right direction ...

@decentral1se decentral1se force-pushed the bugfix/support-other-ssh-private-key branch from b97cec6 to 1c1b9f9 Compare May 28, 2019 13:46
@decentral1se
Copy link
Collaborator Author

decentral1se commented May 28, 2019

CI failure appears to be unrelated.

https://travis-ci.org/philpep/testinfra/jobs/538244422#L2959

@philpep philpep merged commit 6f48f71 into pytest-dev:master May 29, 2019
@philpep
Copy link
Contributor

philpep commented May 29, 2019

Looks reasonable to handle both, Merged, thanks!

@decentral1se decentral1se deleted the bugfix/support-other-ssh-private-key branch May 29, 2019 08:05
@decentral1se
Copy link
Collaborator Author

decentral1se commented May 29, 2019

Thank you very much. I must now obligatorily beg you for a new release :)

The next molecule release relies on this fix in Testinfra.

@philpep
Copy link
Contributor

philpep commented May 29, 2019

Sure, It's in 3.0.5 ;)

@decentral1se
Copy link
Collaborator Author

<3

decentral1se added a commit to decentral1se/molecule that referenced this pull request May 30, 2019
ssbarnea pushed a commit to ansible/molecule that referenced this pull request May 30, 2019
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