I wanted to setup Ansible lab on AWS, I was planning to do it with cloudformation first but then decided to go with Terraform
once "terraform apply" succeed, we should have 1- ansible control node (with ansible 2.7 installed) and 3 - ansible managed nodes (all amzn linux --- modified to centos7 in version 06 and 07)
=======
ssh -i kp.pem centos@IP
source myansible/bin/active
all ansible related command can be run now, but we still need to configure passwordless ssh between control node and managend nodes
ssh-agent bash
ssh-add kp.pem
ansible all -m ping
ansible lab practice document: https://github.com/ArunNadda/ansible-exam-prep