# how to modify nginx.conf file

**URL:** <https://forum.ansible.com/t/how-to-modify-nginx-conf-file/33142>\
**Category:** AWX Project\
**Created:** [June 10, 2020, 12:12pm UTC](https://forum.ansible.com/t/how-to-modify-nginx-conf-file/33142 "2020-06-10T12:12:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahesh\_Babu](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@Mahesh\_Babu](https://forum.ansible.com/u/Mahesh_Babu)\
**Post date:** [June 10, 2020, 12:12pm UTC](https://forum.ansible.com/t/how-to-modify-nginx-conf-file/33142/1 "2020-06-10T12:12:41Z")

</div>

hi team

please help on this

when i’m try to modify the nginx.conf file i got this below error. please suggest me how to modify that file.

E45: ‘readonly’ option is set (add ! to override)

---

<div class="post-metadata">

**Author:** ![Michael\_M1](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Michael\_M1](https://forum.ansible.com/u/Michael_M1)\
**Post date:** [June 10, 2020, 7:23pm UTC](https://forum.ansible.com/t/how-to-modify-nginx-conf-file/33142/2 "2020-06-10T19:23:26Z")

</div>

Hi Mahesh,

If you post the whole playbook we can probably help better. But for starters I would say somewhere in your playbook you change the permissions of the nginx.conf file eg:  
mode: ‘0644’

And make sure the remote user executing the play has permissions to write that file.
