summaryrefslogtreecommitdiff
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
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>
-rw-r--r--changelogs/fragments/73619-hostname-almalinux-support.yml2
-rw-r--r--lib/ansible/modules/system/hostname.py6
2 files changed, 8 insertions, 0 deletions
diff --git a/changelogs/fragments/73619-hostname-almalinux-support.yml b/changelogs/fragments/73619-hostname-almalinux-support.yml
new file mode 100644
index 0000000000..99e5d80952
--- /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/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'