On 23/09/2021 08:42, dulhaver via Ansible Project wrote:
helloOn 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.cfgok 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/31ee2454-90b9-3897-5d2c-98623a58e2ad%40linuxia.de.
OpenPGP_0x5B93015BFA2720F8.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature
