Skip to content

Update Survey Options

Go to Automation

View in GitLab

Description

This playbook updates survey options for a specific job template in Ansible Tower. It retrieves the current survey specifications, modifies the options based on the specified action (append, remove, or replace), and ensures that default values are preserved if required. Finally, it applies the updated survey specifications back to the job template.

Credentials

  • Ansible Tower credentials

Input

Variable Description
template_name Name of the job template to update.
survey_var Variable name of the survey question to modify.
list_action Action to perform (append, remove, replace).
values Comma-separated list of values to modify.
keep_default Whether to preserve the default value (1 or 0).

Output

None

Dependencies