diff --git a/changelogs/fragments/73619-hostname-almalinux-support.yml b/changelogs/fragments/73619-hostname-almalinux-support.yml new file mode 100644 index 00000000000..99e5d809526 --- /dev/null +++ b/changelogs/fragments/73619-hostname-almalinux-support.yml @@ -0,0 +1,2 @@ +bugfixes: + - hostname - add Almalinux support (https://github.com/ansible/ansible/pull/73619) \ No newline at end of file diff --git a/lib/ansible/modules/hostname.py b/lib/ansible/modules/hostname.py index 3405f870b5e..dc775547a98 100644 --- a/lib/ansible/modules/hostname.py +++ b/lib/ansible/modules/hostname.py @@ -773,6 +773,12 @@ class ArchARMHostname(Hostname): strategy_class = SystemdStrategy +class AlmaLinuxHostname(Hostname): + platform = 'Linux' + distribution = 'Almalinux' + strategy_class = SystemdStrategy + + class ManjaroHostname(Hostname): platform = 'Linux' distribution = 'Manjaro'