disable "ansible in a world writeable directory" warning

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

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.

Thanks :slight_smile: - got it now

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