From 50681928229d47530d43092d177a4e58ee99bb71 Mon Sep 17 00:00:00 2001 From: Matthew Ward Date: Sat, 28 Apr 2018 15:48:35 -0400 Subject: [PATCH] Added ansible_ssh_private_key_file var. 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. --- tools/aws_lab_setup/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/aws_lab_setup/README.md b/tools/aws_lab_setup/README.md index 611fe528..f54c0a73 100644 --- a/tools/aws_lab_setup/README.md +++ b/tools/aws_lab_setup/README.md @@ -77,6 +77,7 @@ To set up lab environments for Ansible training, follow these steps. ec2_vpc_subnet_id: subnet-5678bbbb # EC2 subnet ID in your VPC admin_password: changeme123 # Set this to something better if you'd like. Defaults to 'LearnAnsible[two digit month][two digit year]', e.g., LearnAnsible0416 ## Optional Variables + ansible_ssh_private_key_file: /path/to/private_key.pem email: no # Set this if you wish to disable email sendgrid_user: username # username for the Sendgrid module. Not required if "email: no" is set sendgrid_pass: 'passwordgoeshere' # sendgrid accound password. Not required if "email: no" is set