From 3edd2cf16194d31141bb7c72526e013afce58c40 Mon Sep 17 00:00:00 2001 From: ipvsean Date: Mon, 9 Mar 2020 16:33:33 -0400 Subject: [PATCH] adding workshop_type filters --- roles/install_demo/tasks/add_job_template.yml | 2 ++ roles/install_demo/tasks/single_job_template.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/roles/install_demo/tasks/add_job_template.yml b/roles/install_demo/tasks/add_job_template.yml index 9865ac7..5d71c30 100644 --- a/roles/install_demo/tasks/add_job_template.yml +++ b/roles/install_demo/tasks/add_job_template.yml @@ -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 diff --git a/roles/install_demo/tasks/single_job_template.yml b/roles/install_demo/tasks/single_job_template.yml index 7de8190..f9737ff 100644 --- a/roles/install_demo/tasks/single_job_template.yml +++ b/roles/install_demo/tasks/single_job_template.yml @@ -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