From b27e86ac07ae5361b1cecdbbaaa5c3ff19e1cb9e Mon Sep 17 00:00:00 2001 From: Martin Krizek Date: Tue, 17 Oct 2017 19:43:54 +0200 Subject: hostname: fix for a new version of rhel (#31839) Fixes #31811 (cherry picked from commit efec43dd1e7169c84fa00ff241cfcd25f7338423) --- lib/ansible/modules/system/hostname.py | 5 +++++ 1 file changed, 5 insertions(+) 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' -- cgit v1.2.1