Hello,
On Wed, Sep 15, 2021 at 07:54:44PM +0000, Andy Smith wrote:
> On Wed, Sep 15, 2021 at 10:52:23AM +0200, Dick Visser wrote:
> > Instead of trying to make (to me rather arbitrary) comparisons between
> > 10 and 10.0, I'd investigate why ansible_distribution_version for your
> > OS has no 'decimals' to begin with.
>
> I think it's because none of the point releases for Debian 10 have
> been installed on that host, so it's not received any update to the
> base-files package (for /etc/os-release) that would show the point
> release (e.g. 10.10).
Having now actually checked, this is not the case! That host does
have version 10.3+deb10u10 of base-files (the latest), so I don't
know why its /etc/os-files shows VERSION_ID="10" or even if that is
normal. Does yours have that? The only lsb-related packages
installed are lsb-base and lsb-release.
Sorry, this is going off at a bit of a tangent now, but I am
interested in why your ansible_distribution_version comes back as
10.10 here!
By the way, on a freshly installed Debian 11 (bullseye) host, I also
see:
$ head -3 /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
and that one also returns just "11" for
ansible_distribution_version. So as I say, in certain configurations
on Debian it seems normal to not have a decimal point in
ansible_distribution_version.
Thanks,
Andy