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 2015. május 29., péntek 15:43:12 UTC+2 időpontban Bence Takács a következőt írta: > > 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 > -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/bc611de9-1945-4be4-bfb6-88ea9579332e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
