From ebe0ed93315702ec4855449ad3e9243b83f7cbe0 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Mon, 8 Mar 2021 05:28:07 -0500 Subject: [PATCH] [stable-2.10] hostname - add Almalinux support (#73619) (#73648) (cherry picked from commit ac0dedda72) Co-authored-by: Aaron Guise --- changelogs/fragments/73619-hostname-almalinux-support.yml | 2 ++ lib/ansible/modules/hostname.py | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 changelogs/fragments/73619-hostname-almalinux-support.yml 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 ab99045a585..f27e27ea805 100644 --- a/lib/ansible/modules/hostname.py +++ b/lib/ansible/modules/hostname.py @@ -632,6 +632,12 @@ class ArchARMHostname(Hostname): strategy_class = SystemdStrategy +class AlmaLinuxHostname(Hostname): + platform = 'Linux' + distribution = 'Almalinux' + strategy_class = SystemdStrategy + + class ManjaroHostname(Hostname): platform = 'Linux' distribution = 'Manjaro'