ansible / lightbulb

Lightbulb has been deprecated and replaced by Ansible Workshops
https://ansible.github.io/workshops/
MIT License
480 stars 307 forks source link

[Provisioner] Added ansible_ssh_private_key_file var. #326

Open mwardRH opened 6 years ago

mwardRH commented 6 years ago

Adding in this into extra vars options lets them user set the variable. I ran into an issue where the provisioner would provision the instances using my ec2_key_name pem file but would fail when trying to connect post provision to gather facts. I had to point to the directory of my ansible_ssh_private_key_file to the correct file using the full file path. Now it provisions correctly.

liquidat commented 6 years ago

@mwardRH Just to understand the issue - did this happen when your key was in $HOME/.ssh? Or does the issue by chance only happens when the key is not in $HOME/.ssh?

tima commented 6 years ago

@mwardRH: This is waiting on your response to @liquidat.

gundalow commented 5 years ago

@mwardRH Just reviewing old PRs, could you reply to

Just to understand the issue - did this happen when your key was in $HOME/.ssh? Or does the issue by chance only happens when the key is not in $HOME/.ssh?