Replies: 1 comment 2 replies
-
moved to discussions |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
The possibility to set variables only from the command line or from the playbook is not very flexible,
especially if we want to use a large number of variables or different sets of many variables.
Propositions
The possibility to load variables from a file with an optionnal arg, for example
-E
.The file containing variables or sets of variables as a structured list of key:value pairs.
The basic case, with a set of variables per files
-E set1.yaml
More sophisticated, with several sets of variables in a single file.
-E severalSets.yaml:set_1
Even better, the possibility to run the playbook on each set of variables of a file, eventually filtered by a regexp.
-E severalSet.yaml:set_*
Thanks
Beta Was this translation helpful? Give feedback.
All reactions