summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Krizek <martin.krizek@gmail.com>2017-10-17 19:43:54 +0200
committerToshio Kuratomi <a.badger@gmail.com>2017-10-18 16:29:33 -0700
commitb27e86ac07ae5361b1cecdbbaaa5c3ff19e1cb9e (patch)
treebb8fafcdfc85fa51f6e829db2b14ab080e01821a
parent9e116c1b65b3830844aa8c720060f98572ebe7d5 (diff)
downloadansible-b27e86ac07ae5361b1cecdbbaaa5c3ff19e1cb9e.tar.gz
hostname: fix for a new version of rhel (#31839)
Fixes #31811 (cherry picked from commit efec43dd1e7169c84fa00ff241cfcd25f7338423)
-rw-r--r--lib/ansible/modules/system/hostname.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ansible/modules/system/hostname.py b/lib/ansible/modules/system/hostname.py
index 36fef64317..76f8f16057 100644
--- a/lib/ansible/modules/system/hostname.py
+++ b/lib/ansible/modules/system/hostname.py
@@ -627,6 +627,11 @@ class RedHat5Hostname(Hostname):
distribution = 'Redhat'
strategy_class = RedHatStrategy
+class RHELHostname(Hostname):
+ platform = 'Linux'
+ distribution = 'Red hat enterprise linux'
+ strategy_class = RedHatStrategy
+
class RedHatServerHostname(Hostname):
platform = 'Linux'
distribution = 'Red hat enterprise linux server'