From 6733d1c72c97be7114d79d05924f2cac7c070225 Mon Sep 17 00:00:00 2001 From: Riccardo Murri Date: Thu, 15 Sep 2016 16:58:33 +0200 Subject: [PATCH] hostname: Support "Scientific Linux CERN" (#4855) CERN maintains its own fork of "Scientific Linux", which identifies as "Scientific Linux CERN SLC". This commit lets Ansible know that this is again another variant of RHEL. --- 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 d16b1ccca28..c56572ebade 100644 --- a/lib/ansible/modules/system/hostname.py +++ b/lib/ansible/modules/system/hostname.py @@ -567,6 +567,11 @@ class ScientificLinuxHostname(Hostname): distribution = 'Scientific linux' strategy_class = RedHatStrategy +class ScientificLinuxCERNHostname(Hostname): + platform = 'Linux' + distribution = 'Scientific linux cern slc' + strategy_class = RedHatStrategy + class OracleLinuxHostname(Hostname): platform = 'Linux' distribution = 'Oracle linux server'