From 567b6112cb96dc0654246cf9ef47928751bf8d88 Mon Sep 17 00:00:00 2001 From: sean cavanaugh Date: Tue, 12 Oct 2021 15:20:13 -0400 Subject: [PATCH] adding support for execution environments --- roles/install_demo/tasks/job_template.yml | 5 +++-- roles/install_demo/tasks/job_template_loop.yml | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/roles/install_demo/tasks/job_template.yml b/roles/install_demo/tasks/job_template.yml index ec5f263..ea486e9 100644 --- a/roles/install_demo/tasks/job_template.yml +++ b/roles/install_demo/tasks/job_template.yml @@ -20,6 +20,7 @@ - "inventory: {{ job_template_definitions[demo].inventory }}" - "project: {{ job_template_definitions[demo].project.name }}" - "playbook: {{ job_template_definitions[demo].playbook }}" + - "execution_environment: {{ job_template_definitions[demo].execution_environment | Default('Default execution environment') }}" - "fact_caching_enabled: {{ job_template_definitions[demo].fact_caching_enabled | default('false') }}" - "credential: {{ job_template_definitions[demo].credential }}" - "survey_enabled: {{ job_template_definitions[demo].survey_enabled | default('false') }}" @@ -33,7 +34,7 @@ inventory: "{{ job_template_definitions[demo].inventory }}" project: "{{ job_template_definitions[demo].project.name }}" playbook: "{{ job_template_definitions[demo].playbook }}" - execution_environment: "{{ job_template_definitions[demo].execution_environment }}" + execution_environment: "{{ job_template_definitions[demo].execution_environment | default('Default execution environment') }}" fact_caching_enabled: "{{ job_template_definitions[demo].fact_caching_enabled | default('false') }}" credential: "{{ job_template_definitions[demo].credential }}" survey_enabled: "{{ job_template_definitions[demo].survey_enabled }}" @@ -56,7 +57,7 @@ inventory: "{{ job_template_definitions[demo].inventory }}" project: "{{ job_template_definitions[demo].project.name }}" playbook: "{{ job_template_definitions[demo].playbook }}" - execution_environment: "{{ job_template_definitions[demo].execution_environment }}" + execution_environment: "{{ job_template_definitions[demo].execution_environment | default('Default execution environment') }}" fact_caching_enabled: "{{ job_template_definitions[demo].fact_caching_enabled | default('false') }}" credential: "{{ job_template_definitions[demo].credential }}" survey_enabled: "{{ job_template_definitions[demo].survey_enabled }}" diff --git a/roles/install_demo/tasks/job_template_loop.yml b/roles/install_demo/tasks/job_template_loop.yml index 35360e0..903081e 100644 --- a/roles/install_demo/tasks/job_template_loop.yml +++ b/roles/install_demo/tasks/job_template_loop.yml @@ -27,7 +27,7 @@ inventory: "{{ item.value.inventory }}" project: "{{ item.value.project.name }}" playbook: "{{ item.value.playbook }}" - execution_environment: "{{ item.value.execution_environment }}" + execution_environment: "{{ item.value.execution_environment | default('Default execution environment') }}" fact_caching_enabled: "{{ item.value.fact_caching_enabled | default('false') }}" credential: "{{ item.value.credential }}" survey_enabled: "{{ item.value.survey_enabled }}" @@ -50,7 +50,7 @@ inventory: "{{ item.value.inventory }}" project: "{{ item.value.project.name }}" playbook: "{{ item.value.playbook }}" - execution_environment: "{{ item.value.execution_environment }}" + execution_environment: "{{ item.value.execution_environment | default('Default execution environment') }}" fact_caching_enabled: "{{ item.value.fact_caching_enabled | default('false') }}" credential: "{{ item.value.credential }}" survey_enabled: "{{ item.value.survey_enabled }}"