diff --git a/changelogs/fragments/hostname_cumulus_linux_support.yaml b/changelogs/fragments/hostname_cumulus_linux_support.yaml new file mode 100644 index 00000000000..e91cf5f8c3f --- /dev/null +++ b/changelogs/fragments/hostname_cumulus_linux_support.yaml @@ -0,0 +1,2 @@ +bugfixes: + - hostname - Readded support for Cumulus Linux which broke in v2.8.0 (https://github.com/ansible/ansible/pull/57493) diff --git a/lib/ansible/modules/system/hostname.py b/lib/ansible/modules/system/hostname.py index 9a92bfd7302..ecc29f37b61 100644 --- a/lib/ansible/modules/system/hostname.py +++ b/lib/ansible/modules/system/hostname.py @@ -637,6 +637,12 @@ class DebianHostname(Hostname): strategy_class = DebianStrategy +class CumulusHostname(Hostname): + platform = 'Linux' + distribution = 'Cumulus-linux' + strategy_class = DebianStrategy + + class KaliHostname(Hostname): platform = 'Linux' distribution = 'Kali'