From cd8161a94827bd8dbae53610318f5957b56b8b98 Mon Sep 17 00:00:00 2001 From: pixiake Date: Wed, 11 Sep 2019 09:54:57 +0800 Subject: [PATCH] hostname: Add support for Kylin linux (#62053) * Add support for Kylin linux to hostname module --- lib/ansible/modules/system/hostname.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/ansible/modules/system/hostname.py b/lib/ansible/modules/system/hostname.py index 698090f4182..dad4a16a01d 100644 --- a/lib/ansible/modules/system/hostname.py +++ b/lib/ansible/modules/system/hostname.py @@ -679,6 +679,12 @@ class DebianHostname(Hostname): strategy_class = DebianStrategy +class KylinHostname(Hostname): + platform = 'Linux' + distribution = 'Kylin' + strategy_class = DebianStrategy + + class CumulusHostname(Hostname): platform = 'Linux' distribution = 'Cumulus-linux'