workflow test

This commit is contained in:
ipvsean
2020-03-10 12:28:40 -04:00
parent 3edd2cf161
commit e5447e6819
6 changed files with 118 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
---
#these tasks will install a workflow
- name: install all job templates in relation to workflow
include: add_job_template.yml
loop: "{{hostvars[inventory_hostname][demo].job_templates|dict2items}}"
- 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: no