From 10167d83eefdd8beff89c0490cf4b7a5f52febf8 Mon Sep 17 00:00:00 2001 From: Aurimas Lapiene Date: Thu, 25 May 2017 16:44:34 +0300 Subject: [PATCH] Add Cloudlinux support for hostname.py **SUMMARY** Add Cloudlinux 6 and Cloudlinux 7 support **ISSUE TYPE** Feature Pull Request **COMPONENT NAME** lib/ansible/modules/system/hostname.py **ANSIBLE VERSION** ``` 2.4 ``` --- lib/ansible/modules/system/hostname.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/ansible/modules/system/hostname.py b/lib/ansible/modules/system/hostname.py index 36fef643178..0c55008b9d5 100644 --- a/lib/ansible/modules/system/hostname.py +++ b/lib/ansible/modules/system/hostname.py @@ -647,6 +647,16 @@ class CentOSLinuxHostname(Hostname): distribution = 'Centos linux' strategy_class = RedHatStrategy +class CloudlinuxHostname(Hostname): + platform = 'Linux' + distribution = 'Cloudlinux' + strategy_class = RedHatStrategy + +class CloudlinuxServerHostname(Hostname): + platform = 'Linux' + distribution = 'Cloudlinux server' + strategy_class = RedHatStrategy + class ScientificHostname(Hostname): platform = 'Linux' distribution = 'Scientific'