diff options
author | Tim Rupp <caphrim007@gmail.com> | 2015-08-28 20:35:24 -0700 |
---|---|---|
committer | Tim Rupp <caphrim007@gmail.com> | 2015-08-28 20:35:24 -0700 |
commit | 48f522455da3a7232aa2f1c5cc3d71a11d243860 (patch) | |
tree | b22df9e424163da450b0f917c29ac52ffe11320d | |
parent | 5fc4f9d876c2787c730ec88c889bb2140cd69b86 (diff) | |
download | ansible-modules-core-48f522455da3a7232aa2f1c5cc3d71a11d243860.tar.gz |
Add hostname support for Kali linux 2.0
This patch allows the hostname module to detect and set the hostname for a
Kali Linux 2.0 installation. Without this patch, the hostname module raises
the following error
hostname module cannot be used on platform Linux (Kali)
Kali is based off of Debian.
-rw-r--r-- | system/hostname.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/system/hostname.py b/system/hostname.py index f986a91f..9e7f6a4e 100644 --- a/system/hostname.py +++ b/system/hostname.py @@ -491,6 +491,11 @@ class DebianHostname(Hostname): distribution = 'Debian' strategy_class = DebianStrategy +class KaliHostname(Hostname): + platform = 'Linux' + distribution = 'Kali' + strategy_class = DebianStrategy + class UbuntuHostname(Hostname): platform = 'Linux' distribution = 'Ubuntu' |