diff --git a/changelogs/fragments/distribution_release.yml b/changelogs/fragments/distribution_release.yml new file mode 100644 index 0000000000..20353b8f83 --- /dev/null +++ b/changelogs/fragments/distribution_release.yml @@ -0,0 +1,2 @@ +minor_changes: +- Ignore plesk-release file while parsing distribution release (https://github.com/ansible/ansible/issues/64101). diff --git a/lib/ansible/module_utils/distro/_distro.py b/lib/ansible/module_utils/distro/_distro.py index e982770f74..5f9a421340 100644 --- a/lib/ansible/module_utils/distro/_distro.py +++ b/lib/ansible/module_utils/distro/_distro.py @@ -94,7 +94,9 @@ _DISTRO_RELEASE_IGNORE_BASENAMES = ( 'lsb-release', 'oem-release', _OS_RELEASE_BASENAME, - 'system-release' + 'system-release', + # Fixed in upstream via https://github.com/nir0s/distro/pull/246 + 'plesk-release' )