Hi, I am new to awx and ansible. Could someone show me the best way to pull the latest nginx conf file from a git repo and deploy across a cluster of nginx boxes. Do I have to clone the repo to the ansible server then do a copy task to all hosts and a notify task to restart nginx? Can I do this in a single job template? Any examples welcome.
Thanks
You could do this one of two ways, both with a single playbook. The first method would use two plays, one local play to check out the configuration once, and a second play that operates on the nginx hosts and copies:
(I didn’t test this playbook, FYI)
The only other suggestion I had would be, if the git repo mirrors the /etc/nginx/ directory, you could just do the git checkout to that directory:
How to replace /etc/nginx/nginx.conf inside AWX ?
I want o change the Timeout uwsgi_read_timeout 120s; to uwsgi_read_timeout 600s;
please suggest.