If we don't specify live_vars.yaml in the dependency var_files attribute, variables will not be picked up from it during execution. We would like variables defined in live_vars.yaml specified with --var-file option to be picked up and have highest precedence - override variables defined elsewhere.
So variable would be first checked from template default, then from dependencies default (whether explicit default or referenced default) then checked from file default and then from file provided on command line. That gives us flexibility to provide var file on command line or not during execution and control how we get default values.
If we don't specify
live_vars.yaml
in the dependencyvar_files
attribute, variables will not be picked up from it during execution. We would like variables defined inlive_vars.yaml
specified with--var-file
option to be picked up and have highest precedence - override variables defined elsewhere.So variable would be first checked from template default, then from dependencies default (whether explicit default or referenced default) then checked from file default and then from file provided on command line. That gives us flexibility to provide var file on command line or not during execution and control how we get default values.