mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
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.
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user