Skip to content

Commit

Permalink
fix: prevent unwanted evaluation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jackhodgkiss authored Oct 25, 2023
1 parent d6bc299 commit dba77fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/github/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,15 @@ github_kolla_tags_input: |
The ansible tags to use when running kolla-ansible playbooks.
github_kayobe_environment_input: |
{%- if github_environment_selector == 'input' -%}
kayobe_environment:
description: |
Select the environment the kayobe workflow shall target.
type: choice
required: true
default: '{{ github_kayobe_environments | first }}'
options: {{ github_kayobe_environments }}
{%- endif -%}
github_workflows:
- "{{ github_prepare_runner }}"
Expand Down

0 comments on commit dba77fe

Please sign in to comment.