spurin/masteringansible

issue with playing nginx_playbook.yml

Closed this issue · 6 comments

nginx_installation

Hello sir , I have purchased your "Mastering ansible " udemy course. I am facing problem with installing nginx server using nginx_playbook.yml file. I have attached screenshot of problem. kindly resolve it.

Hi @rajkrburnwal,

Thanks for getting in touch. I noticed that the IP's are different from those I provided in the vm lab so I'm guessing that you're using your own environment for this. Would you mind elaborating on the setup that you're using please.

Possibly, there is a variation on the nginx server version/configuration, so the templates being applied may not be working as expected. A 500 Internal Server Error suggests this is.

If you can share details about your setup, we can investigate further.

Thanks

James

@rajkrburnwal following up on this, the lab in this case, was reliant on the VM's supplied with the lab and the configuration for nginx that was available at the time. I'm guessing, the variance in your setup resulted in a playbook execution that didnt tally up with what was expected. It could be a good exercise to fix the playbook template if you desire. The quick fix however, is to just use the lab vm's.

Closing this issue for now, thanks for your feedback above! 👍

Re-opening this, it should be an enhancement to the course in terms of guidance, when using your own control host there may be differences encountered

@rajkrburnwal I've referenced this issue here https://masteringansible.com/2019/03/14/Using-your-own-control-host-with-the-lab/ and have credited you for the support, considering this closed. Thanks