[test@ip-172-31-1-143 ~]$ ansible-playbook /home/test/AQ-Project2/playbook.yml -i /home/test/AQ-Project2/inventory.txt
PLAY [Deploy a web application] ****************************************************************
TASK [Gathering Facts] *************************************************************************
ok: [db_and_web_server]
TASK [Install dependencies] ********************************************************************
failed: [db_and_web_server] (item=[u’python’, u’python-setuptools’, u’python-dev’, u’build-essential’, u’python-pip’, u’python-mysqldb’]) => {“changed”: false, “failed”: true, “item”: [“python”, “python-setuptools”, “python-dev”, “build-essential”, “python-pip”, “python-mysqldb”], “msg”: “No package matching ‘python-dev’ found available, installed or updated”, “rc”: 126, “results”: [“python-2.7.14-58.amzn2.0.4.x86_64 providing python is already installed”, “python2-setuptools-38.4.0-3.amzn2.0.6.noarch providing python-setuptools is already installed”, “No package matching ‘python-dev’ found available, installed or updated”]}
to retry, use: --limit @/home/test/Anas-Project2/playbook.retry
PLAY RECAP *************************************************************************************
db_and_web_server : ok=1 changed=0 unreachable=0 failed=1