18 lines
803 B
YAML
18 lines
803 B
YAML
---
|
|
# these tasks will install a workflow
|
|
|
|
- name: "install all job templates in relation to workflow {{ hostvars[inventory_hostname][demo].name }}"
|
|
include_tasks: add_job_template.yml
|
|
loop: "{{ hostvars[inventory_hostname][demo].job_templates|dict2items }}"
|
|
|
|
- name: "install workflow template {{ hostvars[inventory_hostname][demo].name }}"
|
|
awx.awx.tower_workflow_template:
|
|
name: "{{ hostvars[inventory_hostname][demo].name }}"
|
|
description: "{{ hostvars[inventory_hostname][demo].description }}"
|
|
organization: "{{ hostvars[inventory_hostname][demo].organization }}"
|
|
schema: "{{ hostvars[inventory_hostname][demo].schema }}"
|
|
tower_username: "{{ my_tower_username }}"
|
|
tower_password: "{{ my_tower_password }}"
|
|
tower_host: "{{ my_tower_host }}"
|
|
validate_certs: false
|