From efec43dd1e7169c84fa00ff241cfcd25f7338423 Mon Sep 17 00:00:00 2001 From: Martin Krizek Date: Tue, 17 Oct 2017 19:43:54 +0200 Subject: [PATCH] hostname: fix for a new version of rhel (#31839) Fixes #31811 --- 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 af564de2f8..a221e0a0cf 100644 --- a/lib/ansible/modules/system/hostname.py +++ b/lib/ansible/modules/system/hostname.py @@ -610,6 +610,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'