A Quick Ansible script to fix up Update issues on Amazon Linux issus hosted on ec-2 instances.
Copy your .pem key in same directory
To run the script:
ansible-playbook main.yml -i inventory
ansible all -i inventory -a "yum update -y" -s
ansible all -i inventory -m yum -a "name=git state=latest update_cache=true" -s
ansible all -i inventory -m yum -a "name='*' state=latest update_cache=true" -s