Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use include_tasks to respect group_vars #136

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

noonedeadpunk
Copy link
Contributor

With import_tasks all imports are processed very early, where some
variables, like group_vars might not be yet processed.

So if upload_helm_chart_method is defined in group_vars rather then
extra vars, value will be ignored and role will proceed with it's
defaults. Include in it's turn is more dynamic and will respect
group_vars.

@mnaser mnaser force-pushed the bugfix/respect_group_vars branch from c9dcdd1 to 7ca2f52 Compare October 14, 2024 20:02
With import_tasks all imports are processed very early, where some
variables, like group_vars might not be yet processed.

So if upload_helm_chart_method is defined in group_vars rather then
extra vars, value will be ignored and role will proceed with it's
defaults. Include in it's turn is more dynamic and will respect
group_vars.
@mnaser mnaser merged commit 34b5991 into vexxhost:main Oct 14, 2024
72 checks passed
@noonedeadpunk noonedeadpunk deleted the bugfix/respect_group_vars branch November 20, 2024 10:14
openstack-mirroring pushed a commit to openstack/openstack-ansible-ops that referenced this pull request Nov 27, 2024
Makes sense to be consistent and follow suggestion to use group_vars
where applicable.
There is a bug in vexxhost collection which prevents from doing so,
unfortunatelly.

For this to be accurate doc, a patch to vexxhost collection should
land first:
vexxhost/ansible-collection-kubernetes#136

Change-Id: I5f48e913436bf5d6a8d6c0a9f77c58886e451d1f
openstack-mirroring pushed a commit to openstack/openstack that referenced this pull request Nov 27, 2024
* Update openstack-ansible-ops from branch 'master'
  to 23172d96b7491859f4a20e34daaf6b91e2efa2d1
  - Merge "[doc] Move all variables to group_vars"
  - [doc] Move all variables to group_vars
    
    Makes sense to be consistent and follow suggestion to use group_vars
    where applicable.
    There is a bug in vexxhost collection which prevents from doing so,
    unfortunatelly.
    
    For this to be accurate doc, a patch to vexxhost collection should
    land first:
    vexxhost/ansible-collection-kubernetes#136
    
    Change-Id: I5f48e913436bf5d6a8d6c0a9f77c58886e451d1f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants