#######All########
-
Make sure ansible, python , awscli installed
-
Generate aws secret key, Aws Access key put them in Aws configure.
-
create a ansible.cfg, hosts files
-
created Ec2-role, apache-role
To run the Play book
ansible-playbook -i hosts ec2.yml --ask-become-pass
steps to run python script
Chmod +x solution.py
./solution.py
Enter N credit cards