-
Notifications
You must be signed in to change notification settings - Fork 346
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
Do we still need core__distribution and core__distribution_release? #2046
Comments
The issue was present in Raspbian which was identified by Ansible as Debian. This could be averted by using the I don't remember any other OS besides Raspbian being misidentified by Ansible in this way, so it would be interesting to check if that's still the case - any Raspbian users around to confirm it? I wonder if @hleitzell is still around... I agree that the best course of action would be to stick to facts provided by Ansible itself. I don't remember any time I had to override |
I have a few Pi's laying around, I'll see if I can reproduce it with the latest Raspbian. |
Raspbian is apparently now called Raspberry Pi OS (see https://www.raspberrypi.com/software/). It is still called Raspbian in /etc/os-release and other places. Raspberry Pi OS Buster on 32-bit ARM (armhf) has this:
Raspberry Pi OS Bullseye on 32-bit ARM (armhf):
And Raspberry Pi OS Bullseye on 64-bit ARM (arm64):
I am not familiar with the intricacies of the Raspberry Pi OS Bullseye on 64-bit ARM is really just the official arm64 port of Debian Bullseye with an additional package repository. The Anyway, it looks like a local fact for setting the distribution (and maybe also codename) is still useful. There are still two problems to solve:
This should result in expected behavior on both Debian and Raspberry Pi OS, and doesn't hinder distribution upgrades. People who run other Debian-based distributions that are not correctly auto-detected will just have to override these two default variables. |
According to the documentation, the variables
core__distribution
andcore__distribution_release
exist because Ansible fails to autodetect this information on some distributions. The values are placed in local facts and are used by other roles.I see three problems with this:
I've never experienced Ansible wrongly detecting my OS distribution, but maybe this is still an issue for some users out there (in which case we should update the documentation). If not, we should consider removing these variables.
The text was updated successfully, but these errors were encountered: