spurin / masteringansible

Repository for course content for Packt Mastering Ansible Course
109 stars 258 forks source link

issue with playing nginx_playbook.yml #6

Closed rajburnwal07 closed 5 years ago

rajburnwal07 commented 5 years ago

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.

spurin commented 5 years ago

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

rajburnwal07 commented 5 years ago

actually problem is that I don't have node machine separately. my local vm is control and node machine . Is there any problem with that?

On Fri, 17 Aug 2018 at 19:14, James Spurin notifications@github.com wrote:

Hi @rajkrburnwal https://github.com/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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/spurin/masteringansible/issues/6#issuecomment-413870420, or mute the thread https://github.com/notifications/unsubscribe-auth/AOLvVns11etkfMTTJW19DtW-nWLhKgCnks5uRsiigaJpZM4WBjkP .

rajburnwal07 commented 5 years ago

and problem is coming at handler part but ping is successful and also netstat -tulpn is showing that at 80 port nginx master is running..

On Mon, 20 Aug 2018 at 12:08, Raj BURNWAL rjburnwal@gmail.com wrote:

actually problem is that I don't have node machine separately. my local vm is control and node machine . Is there any problem with that?

On Fri, 17 Aug 2018 at 19:14, James Spurin notifications@github.com wrote:

Hi @rajkrburnwal https://github.com/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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/spurin/masteringansible/issues/6#issuecomment-413870420, or mute the thread https://github.com/notifications/unsubscribe-auth/AOLvVns11etkfMTTJW19DtW-nWLhKgCnks5uRsiigaJpZM4WBjkP .

spurin commented 5 years ago

@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! 👍

spurin commented 5 years ago

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

spurin commented 5 years ago

@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