Skip to content

Conversation

@adf-patrickha
Copy link
Member

The current example from the guide has the problem, that in the variables lookup only
os_family is and next distribution + distribution_major_version is considered.

This approach leaves a gap for distributions like Ubuntu or Fedora which don't have their own os_family but work vastly different than their root distribution.
So if Ubuntu has its own general settings, you would still have to create a vars file for every Ubuntu major version (Ubuntu_22.yml, Ubuntu_24.yml, etc.).

This solution offers the option to have a vars file based on just the distribution fact (Example: Ubuntu.yml) and solves this gap.

The current example from the guide has the problem, that in the
variables lookup only
`os_family` is and next `distribution` +
`distribution_major_version` is considered.

This approach leaves a gap for distributions like Ubuntu or Fedora
which don't have their own `os_family` but work vastly different
than their root distribution.
So if Ubuntu has its general settings, you would have to create a vars
file for every Ubuntu major version (`Ubuntu_22.yml`, `Ubuntu_24.yml`,
etc.).

This solution offers the option to have a vars file based on just the
`distribution` fact and solves this gap.
@adf-patrickha adf-patrickha self-assigned this Oct 7, 2025
Copy link
Contributor

@s3lph s3lph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Copy link

@lukasgraesslin lukasgraesslin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐝

@adf-patrickha adf-patrickha merged commit 80a0ede into adfinis:main Oct 7, 2025
1 check passed
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.

3 participants