# disable "ansible in a world writeable directory" warning

**URL:** <https://forum.ansible.com/t/disable-ansible-in-a-world-writeable-directory-warning/28163>\
**Category:** Ansible Project\
**Created:** [July 26, 2018, 3:19pm UTC](https://forum.ansible.com/t/disable-ansible-in-a-world-writeable-directory-warning/28163 "2018-07-26T15:19:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![profhase85](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@profhase85](https://forum.ansible.com/u/profhase85)\
**Post date:** [July 26, 2018, 3:19pm UTC](https://forum.ansible.com/t/disable-ansible-in-a-world-writeable-directory-warning/28163/1 "2018-07-26T15:19:10Z")

</div>

I am running ansible in the gitlab ci in a docker container.

I am always getting:

> `[WARNING] Ansible is in a world writable directory (/builds/iam/deployment/infrastructure), ignoring it as an ansible.cfg source.`

(BTW - the only warning that is not colored). Is there a way to disable it? Or do I really need to chmod it in all pipelines etc.?

Thanks a lot

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [July 26, 2018, 3:37pm UTC](https://forum.ansible.com/t/disable-ansible-in-a-world-writeable-directory-warning/28163/2 "2018-07-26T15:37:57Z")

</div>

This is a bit of a chicken/egg problem.

No, there is no way to disable this warning with a setting, since it  
is in the process of dealing with settings (trying to load config to  
find out what the settings are).

Also not colored because 'colors' come from the configuration, which  
again, is what it is in the process of loading.

---

<div class="post-metadata">

**Author:** ![profhase85](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@profhase85](https://forum.ansible.com/u/profhase85)\
**Post date:** [July 26, 2018, 4:11pm UTC](https://forum.ansible.com/t/disable-ansible-in-a-world-writeable-directory-warning/28163/3 "2018-07-26T16:11:00Z")

</div>

Thanks 🙂 - got it now

---

<div class="post-metadata">

**Author:** ![Bruno\_Freitas](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@Bruno\_Freitas](https://forum.ansible.com/u/Bruno_Freitas)\
**Post date:** [July 31, 2018, 8:10pm UTC](https://forum.ansible.com/t/disable-ansible-in-a-world-writeable-directory-warning/28163/4 "2018-07-31T20:10:41Z")

</div>

Do you have any ansible.cfg in `/builds/iam/deployment/infrastructure directory?`

`This might help: https://medium.com/@andrewhowdencom/the-curious-case-of-sudden-ansible-build-failures-eef1cf9ad1d0`
