Re: [ansible-devel] include_vars: Option for preserving existing variables from being overwritten

2018-04-13 Thread patrick . fink
Thanks for your input, even though I don't fully agree. register vars / set_facts: If some "default" configuration options are e.g. gathered by shell commands and registered as variables with set_fact, this can by easily solved by just adding *when: var is not defined* to the particular task(s)

Re: [ansible-devel] include_vars: Option for preserving existing variables from being overwritten

2018-04-13 Thread Andrew Gaffney
You can pass the path to a YAML file to -e/--extra-vars, which allows them to keep their configuration within a separate file. --extra-vars @path/to/file.yml Andrew Gaffney agaffney.org On Fri, Apr 13, 2018 at 4:14 AM, wrote: > I think extra_vars is not a realistic option for configuring every

RE: [ansible-devel] include_vars: Option for preserving existing variables from being overwritten

2018-04-13 Thread Fink, Patrick
Thanks, that already helps a lot! Anyway, there are still cases where variables have to be overwritten differently for specific hosts / host groups. So this is still not the overall solution for the issue in general. Regarding the suggestion I made for adding an additional option to include_vars