summaryrefslogtreecommitdiff
path: root/lib/ansible
diff options
context:
space:
mode:
authorSam Doran <sdoran@redhat.com>2021-03-07 23:13:23 -0500
committerGitHub <noreply@github.com>2021-03-07 22:13:23 -0600
commit8493662b8951e8c11ebd9aeff6e2f896184d0781 (patch)
treecd6ff9eb34f80c3dbb69ea71659ff80287f9d920 /lib/ansible
parent0d20c829a253a5d07871b04740770c041e5abda4 (diff)
downloadansible-8493662b8951e8c11ebd9aeff6e2f896184d0781.tar.gz
[stable-2.9] hostname - add Almalinux support (#73619) (#73649)
(cherry picked from commit ac0dedda72) Co-authored-by: Aaron Guise <guisea@users.noreply.github.com>
Diffstat (limited to 'lib/ansible')
-rw-r--r--lib/ansible/modules/system/hostname.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ansible/modules/system/hostname.py b/lib/ansible/modules/system/hostname.py
index 2f317f286f..bfc24b35ad 100644
--- a/lib/ansible/modules/system/hostname.py
+++ b/lib/ansible/modules/system/hostname.py
@@ -621,6 +621,12 @@ class ArchARMHostname(Hostname):
strategy_class = SystemdStrategy
+class AlmaLinuxHostname(Hostname):
+ platform = 'Linux'
+ distribution = 'Almalinux'
+ strategy_class = SystemdStrategy
+
+
class ManjaroHostname(Hostname):
platform = 'Linux'
distribution = 'Manjaro'