Files
product-demos/roles/install_demo/tasks/workflow.yml
Sašo Stanovnik 3188c5742f Remove the use of vars and hostvars wherever possible.
`vars` operates inconsistently in different combinations of
Ansible (full/base/core) and Python versions.

Variables are now instead explicitly loaded under a subkey, which also removes
the need for filtering and makes access more explicit and semantic.
2021-06-03 16:10:00 +02:00

18 lines
775 B
YAML

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