Pass data and errors more clearly, change extra_vars to be a dict, update test playbook to have a task utilizing extra_vars

This commit is contained in:
beeankha
2020-04-09 12:40:13 -04:00
parent d7adcfb119
commit cf607691ac
2 changed files with 43 additions and 20 deletions

View File

@@ -70,6 +70,26 @@
- result is not failed
- "'id' in result['job_info']"
- name: Prompt the workflow's extra_vars on launch
tower_workflow_job_template:
name: "{{ wfjt_name1 }}"
state: present
ask_variables_on_launch: true
- name: Kick off a workflow with extra_vars
tower_workflow_launch:
validate_certs: false
workflow_template: "{{ wfjt_name1 }}"
extra_vars:
var1: My First Variable
var2: My Second Variable
ignore_errors: true
register: result
- assert:
that:
- result is not failed
- name: Clean up test workflow
tower_workflow_job_template:
name: "{{ wfjt_name1 }}"