From the course: Ansible: From Basics to Guru by Pearson

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Creating job template surveys

Creating job template surveys

Our next topic is the job template survey. So what is a job template survey? Well, you know, in Ansible Engine, there is VarsPrompt. And the purpose of VarsPrompt is to prompt the user for input while running the job. And VarsPrompt is creating a variable. This VarsPrompt is not supported in Towers, So you need to rework your playbooks if your playbooks are using VARs prompt. And you need to use the alternative. The alternative is provided by job template surveys. If you create a job, there's an extra variables option which allows you to define variables on the job. And you can select prompt on launch to prompt for variable values while launching the job template. So the user will see the prompt while launching the job. And these options make sense for a skilled Ansible user who can become interactive with the jobs. To make it easy for anyone to provide variables, job template survey can be used. And the job template survey prompts for variables when the job is started. And variables…

Contents