Skip to content

Commit dba77fe

Browse files
authored
fix: prevent unwanted evaluation
In older versions of Ansible it attempts to evaluate the nested variable inside `github_kayobe_environment_input` this causes the role to fail if using no environments.
1 parent d6bc299 commit dba77fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

roles/github/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,15 @@ github_kolla_tags_input: |
5656
The ansible tags to use when running kolla-ansible playbooks.
5757
5858
github_kayobe_environment_input: |
59+
{%- if github_environment_selector == 'input' -%}
5960
kayobe_environment:
6061
description: |
6162
Select the environment the kayobe workflow shall target.
6263
type: choice
6364
required: true
6465
default: '{{ github_kayobe_environments | first }}'
6566
options: {{ github_kayobe_environments }}
67+
{%- endif -%}
6668
6769
github_workflows:
6870
- "{{ github_prepare_runner }}"

0 commit comments

Comments
 (0)