mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Add survey_spec parameter to module. (#48182)
* Add survey_spec parameter to module. Fixes #48011 * Removed trailing white space. Added integration test.
This commit is contained in:
@@ -59,6 +59,19 @@
|
||||
job_type: run
|
||||
state: present
|
||||
|
||||
- name: Add a Survey to second Job Template
|
||||
tower_job_template:
|
||||
name: my-job-2
|
||||
project: Job Template Test Project
|
||||
inventory: Demo Inventory
|
||||
playbook: hello_world.yml
|
||||
credential: Demo Credential
|
||||
job_type: run
|
||||
state: present
|
||||
survey_enabled: yes
|
||||
survey_spec: '{"spec": [{"index": 0, "question_name": "my question?", "default": "mydef", "variable": "myvar", "type": "text", "required": "false"}], "description": "test", "name": "test"}'
|
||||
|
||||
|
||||
- name: Create a workflow job template
|
||||
tower_workflow_template:
|
||||
name: my-workflow
|
||||
|
||||
Reference in New Issue
Block a user