ansible-playbook -i inventories/staging playbook.yml

FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "\r

/bin/sh: 1: /usr/bin/python: not found\r

", "msg": "MODULE FAILURE", "parsed": false}

sudo apt-get install python-minimal #checking ansible version python --version Python 2.7.12

If you visit my blog frequently, I always use Vagrant with Ansible for setting up my local development or provisioning a staging server. This commandalways working well for me but today I met this errorAfter spending time for checking, Python 2.7 was not yet installed on theas it should be socould not run well. It is quite easy to fix by just installwith this command:After that, I could provision LAMP Stack successfully to deploy my new magento website onEC2 instance.I hope this post can help you quickly resolve your issue.