03.05.2018 · 1 Answer Active Oldest Votes 0 From the Tower you have several options: Under Job Templates use the Extra Variables option. This is the --extra-vars equivalent to the cli (Take into account that Tower is not cli and you cannot pass a file …
Extra Variables: Pass extra command line variables to the playbook. This is the "-e" or "–extra-vars" command line parameter for ansible-playbook that is ...
05.02.2018 · Ansible syntax for passing extra variables. We pass extra variables to Playbook using 'extra-var' argument, which can be abbreviated to 'e': ansible-playbook extra_var_single.yml --extra- var my_var=CoolCmdLineVar or ansible-playbook extra_var_single.yml -e my_var=CoolCmdLineVar Passing multiple variables.
19.03.2019 · If you want to attach such playbook in AWX / Ansible Tower template, you need to pass the variables in the “ EXTRA VARIABLES” box. In the newer version of Ansible Tower /AWX offers “Survey”. It’s prompt for Extra Variables in a user-friendly way (Question and answers). Surveys also allow for validation of user input.
This is the “-e” or “–extra-vars” command line parameter for ansible-playbook that is documented in the Ansible documentation, Defining variables at runtime. Provide key/value pairs using either YAML or JSON. These variables have a maximum value of precedence and overrides other variables specified elsewhere. An example value might be:
If you want to be able to specify extra_vars on a schedule, you must select Prompt on Launch for EXTRA VARIABLES on the job template, or a enable a survey on ...