http://www.if-not-true-then-false.com/2011/install-nginx-php-fpm-on-fedora-centos-red-hat-rhel/
https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-on-centos-7
https://serversforhackers.com/an-ansible-tutorial
ansible-playbook --limit local -s centos.yml -u centos -k --ask-sudo-pass --extra-vars "user=centos"
To the request so it will not hang at Gathering data
cd server_config/ansible
ansible-playbook --limit local -s nginx.yml -u centos --extra-vars "user=centos version=centos"
ansible-playbook --limit serverstage -s nginx.yml -u ec2-user --extra-vars "user=ec2-user version=rhel"
ansible-playbook --limit serverprod -s nginx.yml -u meta-data-tool --extra-vars "user=ec2-user version=rhel"
Where are the logs!
check /var/log/nginx/default-error.log as sudo su
BadGateway
Check /var/run/php-fpm/php-fpm.sock make sure it is read writable by the user of the system and the group nginx