summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Doran <sdoran@redhat.com>2021-03-08 05:28:07 -0500
committerGitHub <noreply@github.com>2021-03-08 04:28:07 -0600
commitebe0ed93315702ec4855449ad3e9243b83f7cbe0 (patch)
tree9a2d554daa403addc1a1f816e3b3f897bdd4c8ce
parent3e95e3c0a0ae7fc6bf55ccce5cdd6d7c3c4a3d99 (diff)
downloadansible-ebe0ed93315702ec4855449ad3e9243b83f7cbe0.tar.gz
[stable-2.10] hostname - add Almalinux support (#73619) (#73648)
(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/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/hostname.py b/lib/ansible/modules/hostname.py
index ab99045a58..f27e27ea80 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'