# AWX - deploy nginx.conf updates from git

**URL:** <https://forum.ansible.com/t/awx-deploy-nginx-conf-updates-from-git/13803>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [October 30, 2013, 9:21am UTC](https://forum.ansible.com/t/awx-deploy-nginx-conf-updates-from-git/13803 "2013-10-30T09:21:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve\_flitcroft](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@steve\_flitcroft](https://forum.ansible.com/u/steve_flitcroft)\
**Post date:** [October 30, 2013, 9:21am UTC](https://forum.ansible.com/t/awx-deploy-nginx-conf-updates-from-git/13803/1 "2013-10-30T09:21:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Timothy\_Gerla](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@Timothy\_Gerla](https://forum.ansible.com/u/Timothy_Gerla)\
**Post date:** [October 30, 2013, 3:35pm UTC](https://forum.ansible.com/t/awx-deploy-nginx-conf-updates-from-git/13803/2 "2013-10-30T15:35:25Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![James\_Cammarata1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@James\_Cammarata1](https://forum.ansible.com/u/James_Cammarata1)\
**Post date:** [October 30, 2013, 5:41pm UTC](https://forum.ansible.com/t/awx-deploy-nginx-conf-updates-from-git/13803/3 "2013-10-30T17:41:23Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![Jagruti\_Belani](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@Jagruti\_Belani](https://forum.ansible.com/u/Jagruti_Belani)\
**Post date:** [December 6, 2022, 11:01pm UTC](https://forum.ansible.com/t/awx-deploy-nginx-conf-updates-from-git/13803/4 "2022-12-06T23:01:56Z")

</div>

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.
