This is an Ansible playbook to deploy a sample Flask application on an Amazon EC2 AMI 2. Please make sure to edit the hosts file before usage.
Ec2IP = IP of your Ec2. KeyPath = private key path.
[webserver] Ec2IP ansible_port=22 ansible_user='ec2-user' ansible_ssh_private_key_file='KeyPath'
ansible-playbook -i hosts Flask.yml