Ansible in a Minute · AAP 2.7 ·
Create a survey on a job template in AAP 2.7
Short answer
Add a survey question to a job template in AAP 2.7 so launch prompts the operator for input.
Subscribe for updates
Get an email whenever we publish new guides and blog posts. Unsubscribe anytime.
By subscribing you agree we may email you about Ansible in a Minute and related Level Up Labs updates. We store your address in the same lead sheet as our contact form.
Request
Open a job template Survey tab and create one survey question.
How it works
A survey asks questions at launch. Answers become extra variables for the playbook.
When to use it
- Collecting an application name or environment at launch
- Validating operator input before a job starts
Requirements
- AAP: 2.7
- An existing job template
- Permission to edit job templates
Procedure
- Open Automation Execution.
- Open Templates.
- Select the job template.
- Open the Survey tab.
- Select Create survey question.
- Enter the question text, the answer type, and the answer variable name.
- Set a default and mark the question required when needed.
- Save the question.
- Enable the survey and save the template.
Result
The next launch of this template shows the survey before the job starts.
Reference
- Create a survey (Red Hat Ansible Automation Platform 2.7)