adding workshop_type filters

This commit is contained in:
ipvsean
2020-03-09 16:33:33 -04:00
parent d9087d4403
commit 3edd2cf161
2 changed files with 4 additions and 0 deletions

View File

@@ -26,6 +26,7 @@
tower_host: "{{my_tower_host}}"
validate_certs: no
when:
- workshop_type in item.value.workshop_type
- not item.value.survey_enabled
- name: "add job template {{item.value.name}} with survey"
@@ -45,4 +46,5 @@
tower_host: "{{my_tower_host}}"
validate_certs: no
when:
- workshop_type in item.value.workshop_type
- item.value.survey_enabled

View File

@@ -26,6 +26,7 @@
tower_host: "{{my_tower_host}}"
validate_certs: no
when:
- workshop_type in item.value.workshop_type
- not hostvars.localhost[demo].survey_enabled
- name: add single job template with survey
@@ -45,4 +46,5 @@
tower_host: "{{my_tower_host}}"
validate_certs: no
when:
- workshop_type in item.value.workshop_type
- hostvars.localhost[demo].survey_enabled