mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 14:27:42 -02:30
update collection workflow example and tests
This commit is contained in:
committed by
Alan Rominger
parent
951bd1cc87
commit
5ce2055431
@@ -517,68 +517,63 @@ EXAMPLES = '''
|
|||||||
workflow_nodes:
|
workflow_nodes:
|
||||||
- identifier: node101
|
- identifier: node101
|
||||||
unified_job_template:
|
unified_job_template:
|
||||||
name: example-project
|
name: example-inventory
|
||||||
inventory:
|
inventory:
|
||||||
organization:
|
organization:
|
||||||
name: Default
|
name: Default
|
||||||
type: inventory_source
|
type: inventory_source
|
||||||
related:
|
related:
|
||||||
success_nodes: []
|
|
||||||
failure_nodes:
|
failure_nodes:
|
||||||
- identifier: node201
|
- identifier: node201
|
||||||
always_nodes: []
|
- identifier: node102
|
||||||
credentials: []
|
|
||||||
- identifier: node201
|
|
||||||
unified_job_template:
|
|
||||||
organization:
|
|
||||||
name: Default
|
|
||||||
name: job template 1
|
|
||||||
type: job_template
|
|
||||||
credentials: []
|
|
||||||
related:
|
|
||||||
success_nodes:
|
|
||||||
- identifier: node301
|
|
||||||
failure_nodes: []
|
|
||||||
always_nodes: []
|
|
||||||
credentials: []
|
|
||||||
- identifier: node202
|
|
||||||
unified_job_template:
|
unified_job_template:
|
||||||
organization:
|
organization:
|
||||||
name: Default
|
name: Default
|
||||||
name: example-project
|
name: example-project
|
||||||
type: project
|
type: project
|
||||||
related:
|
related:
|
||||||
success_nodes: []
|
success_nodes:
|
||||||
failure_nodes: []
|
- identifier: node201
|
||||||
always_nodes: []
|
- identifier: node201
|
||||||
credentials: []
|
|
||||||
- identifier: node301
|
|
||||||
all_parents_must_converge: false
|
|
||||||
unified_job_template:
|
unified_job_template:
|
||||||
organization:
|
organization:
|
||||||
name: Default
|
name: Default
|
||||||
name: job template 2
|
name: example-job template
|
||||||
type: job_template
|
type: job_template
|
||||||
execution_environment:
|
|
||||||
name: My EE
|
|
||||||
inventory:
|
inventory:
|
||||||
name: Test inventory
|
name: Demo Inventory
|
||||||
organization:
|
organization:
|
||||||
name: Default
|
name: Default
|
||||||
related:
|
related:
|
||||||
|
success_nodes:
|
||||||
|
- identifier: node401
|
||||||
|
failure_nodes:
|
||||||
|
- identifier: node301
|
||||||
|
always_nodes: []
|
||||||
credentials:
|
credentials:
|
||||||
- name: cyberark
|
- name: cyberark
|
||||||
organization:
|
organization:
|
||||||
name: Default
|
name: Default
|
||||||
instance_groups:
|
instance_groups:
|
||||||
- name: SunCavanaugh Cloud
|
- name: SunCavanaugh Cloud
|
||||||
- name: default
|
|
||||||
labels:
|
labels:
|
||||||
- name: Custom Label
|
- name: Custom Label
|
||||||
- name: Another Custom Label
|
|
||||||
organization:
|
organization:
|
||||||
name: Default
|
name: Default
|
||||||
register: result
|
- all_parents_must_converge: false
|
||||||
|
identifier: node301
|
||||||
|
unified_job_template:
|
||||||
|
description: Approval node for example
|
||||||
|
timeout: 900
|
||||||
|
type: workflow_approval
|
||||||
|
name: Approval Node for Demo
|
||||||
|
related:
|
||||||
|
success_nodes:
|
||||||
|
- identifier: node401
|
||||||
|
- identifier: node401
|
||||||
|
unified_job_template:
|
||||||
|
name: Cleanup Activity Stream
|
||||||
|
type: system_job_template
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -169,6 +169,9 @@
|
|||||||
name: "{{ jt1_name }}"
|
name: "{{ jt1_name }}"
|
||||||
project: "{{ demo_project_name }}"
|
project: "{{ demo_project_name }}"
|
||||||
inventory: Demo Inventory
|
inventory: Demo Inventory
|
||||||
|
ask_inventory_on_launch: true
|
||||||
|
ask_credential_on_launch: true
|
||||||
|
ask_labels_on_launch: true
|
||||||
playbook: hello_world.yml
|
playbook: hello_world.yml
|
||||||
job_type: run
|
job_type: run
|
||||||
state: present
|
state: present
|
||||||
@@ -710,7 +713,7 @@
|
|||||||
name: "{{ wfjt_name }}"
|
name: "{{ wfjt_name }}"
|
||||||
inventory: Demo Inventory
|
inventory: Demo Inventory
|
||||||
extra_vars: {'foo': 'bar', 'another-foo': {'barz': 'bar2'}}
|
extra_vars: {'foo': 'bar', 'another-foo': {'barz': 'bar2'}}
|
||||||
schema:
|
workflow_nodes:
|
||||||
- identifier: node101
|
- identifier: node101
|
||||||
unified_job_template:
|
unified_job_template:
|
||||||
name: "{{ project_inv_source_result.id }}"
|
name: "{{ project_inv_source_result.id }}"
|
||||||
@@ -721,30 +724,52 @@
|
|||||||
related:
|
related:
|
||||||
failure_nodes:
|
failure_nodes:
|
||||||
- identifier: node201
|
- identifier: node201
|
||||||
|
- identifier: node102
|
||||||
|
unified_job_template:
|
||||||
|
organization:
|
||||||
|
name: "{{ org_name }}"
|
||||||
|
name: "{{ demo_project_name_2 }}"
|
||||||
|
type: project
|
||||||
|
related:
|
||||||
|
success_nodes:
|
||||||
|
- identifier: node201
|
||||||
- identifier: node201
|
- identifier: node201
|
||||||
unified_job_template:
|
unified_job_template:
|
||||||
organization:
|
organization:
|
||||||
name: Default
|
name: Default
|
||||||
name: "{{ jt1_name }}"
|
name: "{{ jt1_name }}"
|
||||||
type: job_template
|
type: job_template
|
||||||
credentials: []
|
inventory:
|
||||||
|
name: Demo Inventory
|
||||||
|
organization:
|
||||||
|
name: Default
|
||||||
related:
|
related:
|
||||||
success_nodes:
|
success_nodes:
|
||||||
|
- identifier: node401
|
||||||
|
failure_nodes:
|
||||||
- identifier: node301
|
- identifier: node301
|
||||||
- identifier: node202
|
always_nodes: []
|
||||||
unified_job_template:
|
credentials:
|
||||||
organization:
|
- name: "{{ scm_cred_name }}"
|
||||||
name: "{{ org_name }}"
|
organization:
|
||||||
name: "{{ project_inv_source }}"
|
name: Default
|
||||||
type: project
|
instance_groups:
|
||||||
|
- name: "{{ ig1 }}"
|
||||||
|
labels:
|
||||||
|
- name: "{{ lab1 }}"
|
||||||
|
organization:
|
||||||
|
name: "{{ org_name }}"
|
||||||
- all_parents_must_converge: false
|
- all_parents_must_converge: false
|
||||||
identifier: node301
|
identifier: node301
|
||||||
unified_job_template:
|
unified_job_template:
|
||||||
organization:
|
description: Approval node for example
|
||||||
name: Default
|
timeout: 900
|
||||||
name: "{{ jt2_name }}"
|
type: workflow_approval
|
||||||
type: job_template
|
name: "{{ approval_node_name }}"
|
||||||
- identifier: Cleanup Job
|
related:
|
||||||
|
success_nodes:
|
||||||
|
- identifier: node401
|
||||||
|
- identifier: node401
|
||||||
unified_job_template:
|
unified_job_template:
|
||||||
name: Cleanup Activity Stream
|
name: Cleanup Activity Stream
|
||||||
type: system_job_template
|
type: system_job_template
|
||||||
|
|||||||
Reference in New Issue
Block a user