I just tried this out and apparently the path you specify for
ANSIBLE_CONFIG has to actually exist:
dick.visser@ams-049 ~ % export ANSIBLE_CONFIG=/opt/nonexistent/ansible.cfg
dick.visser@ams-049 ~ % ansible --version
ansible 2.10.12
config file = /Users/dick.visser/.ansible.cfg
configured module search path =
['/Users/dick.visser/.ansible/plugins/modules',
'/usr/share/ansible/plugins/modules']
ansible python module location =
/Users/dick.visser/.pyenv/versions/3.9.6/lib/python3.9/site-packages/ansible
executable location = /Users/dick.visser/.pyenv/versions/3.9.6/bin/ansible
python version = 3.9.6 (default, Aug 11 2021, 12:13:01) [Clang
12.0.5 (clang-1205.0.22.11)]
dick.visser@ams-049 ~ % export ANSIBLE_CONFIG=/opt/ansible.cfg
dick.visser@ams-049 ~ % ansible --version
ansible 2.10.12
config file = /opt/ansible.cfg
configured module search path =
['/Users/dick.visser/.ansible/plugins/modules',
'/usr/share/ansible/plugins/modules']
ansible python module location =
/Users/dick.visser/.pyenv/versions/3.9.6/lib/python3.9/site-packages/ansible
executable location = /Users/dick.visser/.pyenv/versions/3.9.6/bin/ansible
python version = 3.9.6 (default, Aug 11 2021, 12:13:01) [Clang
12.0.5 (clang-1205.0.22.11)]
On Wed, 22 Sept 2021 at 19:53, dulhaver via Ansible Project
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
ansible-proje...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/2b1ac2a8-3121-1d78-0cfe-e77f73382231%40mailbox.org.
--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT