fixing data model so that demos and repos are not tied together
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
- name: add tower project
|
||||
tower_project:
|
||||
name: "{{project.my_name}}"
|
||||
description: "{{project.my_description}}"
|
||||
organization: "{{project.my_organization}}"
|
||||
scm_type: "{{project.my_scm_type}}"
|
||||
scm_url: "{{project.my_scm_url}}"
|
||||
tower_username: "{{my_tower_username}}"
|
||||
tower_password: "{{my_tower_password}}"
|
||||
tower_host: "{{my_tower_host}}"
|
||||
validate_certs: no
|
||||
|
||||
- name: add job template without survey
|
||||
tower_job_template:
|
||||
name: "{{item.value.name}}"
|
||||
|
||||
@@ -1,15 +1,7 @@
|
||||
---
|
||||
- name: add tower project
|
||||
tower_project:
|
||||
name: "Ansible official demo project"
|
||||
description: "prescriptive demos from Red Hat Management Buisness Unit"
|
||||
organization: "Default"
|
||||
scm_type: git
|
||||
scm_url: https://github.com/ansible/product-demos
|
||||
tower_username: "{{my_tower_username}}"
|
||||
tower_password: "{{my_tower_password}}"
|
||||
tower_host: "{{my_tower_host}}"
|
||||
validate_certs: no
|
||||
- name: provide info to terminal window
|
||||
debug:
|
||||
msg: "install {{demo}} on {{my_tower_host}}"
|
||||
|
||||
- name: install all job templates
|
||||
include: add_job_template.yml
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
- name: add tower project
|
||||
tower_project:
|
||||
name: "{{project.my_name}}"
|
||||
description: "{{project.my_description}}"
|
||||
organization: "{{project.my_organization}}"
|
||||
scm_type: "{{project.my_scm_type}}"
|
||||
scm_url: "{{project.my_scm_url}}"
|
||||
tower_username: "{{my_tower_username}}"
|
||||
tower_password: "{{my_tower_password}}"
|
||||
tower_host: "{{my_tower_host}}"
|
||||
validate_certs: no
|
||||
|
||||
- name: add single job template without survey
|
||||
tower_job_template:
|
||||
name: "{{demos[demo].name}}"
|
||||
|
||||
Reference in New Issue
Block a user