sync content

This commit is contained in:
ipvsean
2020-02-25 19:16:52 -05:00
parent bdea0894aa
commit 3c5dba85a0
4 changed files with 21 additions and 53 deletions

View File

@@ -1,32 +1,32 @@
- name: add deploy application job template
- name: add job template without survey
tower_job_template:
name: "{{demos[demo].name}}"
job_type: "{{demos[demo].job_type}}"
inventory: "{{demos[demo].inventory}}"
project: "{{demos[demo].project}}"
playbook: "{{demos[demo].playbook}}"
credential: "{{demos[demo].credential}}"
survey_enabled: "{{demos[demo].survey_enabled}}"
name: "{{item.value.name}}"
job_type: "{{item.value.job_type}}"
inventory: "{{item.value.inventory}}"
project: "{{item.value.project}}"
playbook: "{{item.value.playbook}}"
credential: "{{item.value.credential}}"
survey_enabled: "{{item.value.survey_enabled}}"
tower_username: "{{my_tower_username}}"
tower_password: "{{my_tower_password}}"
tower_host: "{{my_tower_host}}"
validate_certs: no
when:
- not demos[demo].survey_enabled
- not item.value.survey_enabled
- name: add deploy application job template
- name: add job template with survey
tower_job_template:
name: "{{demos[demo].name}}"
job_type: "{{demos[demo].job_type}}"
inventory: "{{demos[demo].inventory}}"
project: "{{demos[demo].project}}"
playbook: "{{demos[demo].playbook}}"
credential: "{{demos[demo].credential}}"
survey_enabled: "{{demos[demo].survey_enabled}}"
survey_spec: "{{demos[demo].survey_spec}}"
name: "{{item.value.name}}"
job_type: "{{item.value.job_type}}"
inventory: "{{item.value.inventory}}"
project: "{{item.value.project}}"
playbook: "{{item.value.playbook}}"
credential: "{{item.value.credential}}"
survey_enabled: "{{item.value.survey_enabled}}"
survey_spec: "{{item.value.survey_spec}}"
tower_username: "{{my_tower_username}}"
tower_password: "{{my_tower_password}}"
tower_host: "{{my_tower_host}}"
validate_certs: no
when:
- demos[demo].survey_enabled
- item.value.survey_enabled

View File

@@ -11,12 +11,6 @@
tower_host: "{{my_tower_host}}"
validate_certs: no
- name: install job template
- name: install all job templates
include: add_job_template.yml
when: demo != "all"
- name: install job template
include: add_job_template.yml
when: demo == "all"
with_items:
- demos
loop: "{{ demos|dict2items }}"