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, [email protected] a écrit : > 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 got it ... my understanding of environment variables was not > sufficient obviously > > > > I thought > > > > $ ANSIBLE_CONFIG=/opt/project.cfg > > $ echo $ANSIBLE_CONFG > > /opt/project.cfg > > > > was proof enough for this to work in the current shell/context and *you > only needed the **'**export'**to make the VARIABLE universal and permanent* > (which in my usecase was not required or even unwanted). > > > > thanks for clarifying > > best Gunnar > > You don't need export for one time usage: > > ANSIBLE_CONFIG=/opt/project.cfg ansible ... > > Regards > Racke > > > > > -- > > 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 [email protected] <mailto: > [email protected]>. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/03fb1eb2-b975-2e34-d12b-65f17922fec3%40mailbox.org > > < > https://groups.google.com/d/msgid/ansible-project/03fb1eb2-b975-2e34-d12b-65f17922fec3%40mailbox.org?utm_medium=email&utm_source=footer > >. > > > -- > Ecommerce and Linux consulting + Perl and web application programming. > Debian and Sympa administration. > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d6b33513-9573-4e07-9925-cf031b2cc580n%40googlegroups.com.
