Hi,
I dont think that should be your case but just be also aware that:
Ansible will not automatically load a config file from the current working
directory if the directory is world-writable
Regards.
Le jeudi 23 septembre 2021 à 07:51:31 UTC+2, ra...@linuxia.de a écrit :
> On 23/09/2021 08:42, d
On 23/09/2021 08:42, dulhaver via Ansible Project wrote:
hello
On 22.09.21 22:23, Dick Visser wrote:
Well it works fine here, also for a file with the ansible substring:
$ export ANSIBLE_CONFIG=/opt/project.cfg $ ansible --version | head -2 ansible
2.10.12 config file = /opt/project.cfg
ok I
hello
On 22.09.21 22:23, Dick Visser wrote:
Well it works fine here, also for a file with the ansible substring:
$ export ANSIBLE_CONFIG=/opt/project.cfg $ ansible --version | head -2
ansible 2.10.12 config file = /opt/project.cfg
ok I got it ... my understanding of environment variables was no
On Wed, 22 Sept 2021 at 21:34, dulhaver via Ansible Project
wrote:
> I assume the file name (everything preceding the .cfg ending) can be chosen
> freely and does not require the string 'ansible' being part of it, right?
> Still, same as you even if I can validate the existence of the ANSIBLE_C
hei Dick,
thx for your getting back to me
On 22.09.21 20:39, Dick Visser wrote:
I just tried this out and apparently the path you specify for
ANSIBLE_CONFIG has to actually exist:
sorry, I was not clear enough obviously. The real-life .cfg file I am
pointing at *does exist* naturally.
Maybe
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 modu
hi everybody,
Ansible novice here from Germany
I learned that setting an environment variable for ANSIBLE_CONFIG (like
ANSIBLE_CONFIG=/path/to/any.cfg) would make the defined file the
preferred configuration file.
However I am still not able to get this working and I am using a
fallback confi