Hi, All
Where should I store my global variables? Like company artifact repository url, application directory (/opt), etc?
Is there a proper place to put that?
I was thinking about ansible.cfg but this would be overkill.
It’s not for hosts, not for groups, not for playbooks…
Regards:
Bence
First I tried to put that into hosts file, but did not work:
[all:vars]
nexus_url=…
app_dir=/opt
…but did not work
Then I came up with the following solution:
group_vars/all:
nexus_url: …
app_dir: /opt
And it is working and seems to be a clean colution for me
Regards:
Bence
- május 29., péntek 15:43:12 UTC+2 időpontban Bence Takács a következőt írta: