From aa32f4e80cbbc3718a725f27e3a65a6ff8ae5c08 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Tue, 20 Jun 2017 20:00:53 +0530 Subject: [PATCH] Add support for Red Hat Atomic Host (#25906) Fix adds support for Red Hat Enterprise Linux Atomic Host. RHEL Atomic host uses same RHEL Server strategy for modifying hostname. Fixes #25903 Signed-off-by: Abhijeet Kasurde --- 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 acfb37dd9e..67a4ac373b 100644 --- a/lib/ansible/modules/system/hostname.py +++ b/lib/ansible/modules/system/hostname.py @@ -637,6 +637,11 @@ class RedHatWorkstationHostname(Hostname): distribution = 'Red hat enterprise linux workstation' strategy_class = RedHatStrategy +class RedHatAtomicHostname(Hostname): + platform = 'Linux' + distribution = 'Red hat enterprise linux atomic host' + strategy_class = RedHatStrategy + class CentOSHostname(Hostname): platform = 'Linux' distribution = 'Centos'