[ansible-project] Re: Use variables from host_vars and if not existent fall back to role vars

2017-08-16 Thread Frieder Heugel
://pastebin.com/raw/k5RiDJcg On Wednesday, August 16, 2017 at 10:56:54 AM UTC+2, Frieder Heugel wrote: > > Hi guys > > Ok it seems that I found the solution for the issue even though I don't > understand why it didn't work before. > > At [1] in my previous post I posted the con

[ansible-project] Re: Use variables from host_vars and if not existent fall back to role vars

2017-08-16 Thread Frieder Heugel
ble/latest/playbooks_variables.html#what-makes-a-valid-variable-name On Tuesday, August 15, 2017 at 6:00:37 PM UTC+2, Frieder Heugel wrote: > > Hi guys > > I have a role that installs Python on the target host ([0]). Different > hosts require different Python libraries (some only need the basic se

[ansible-project] Use variables from host_vars and if not existent fall back to role vars

2017-08-15 Thread Frieder Heugel
Hi guys I have a role that installs Python on the target host ([0]). Different hosts require different Python libraries (some only need the basic set of libraries, others need completely different ones). My idea was to define a list of default packages in the role vars [1] and then provide the