From db8719cf8bcb51fa76bb0111a75f2f2c9e494b87 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 20 Oct 2016 00:32:57 +0200 Subject: [PATCH] Add support for NetBSD While I only checked on NetBSD 7.0, it seems to use the same rc system as FreeBSD so it should be working for now. --- 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 c6432428fca..7af045b5a6e 100644 --- a/lib/ansible/modules/system/hostname.py +++ b/lib/ansible/modules/system/hostname.py @@ -727,6 +727,11 @@ class FreeBSDHostname(Hostname): distribution = None strategy_class = FreeBSDStrategy +class NetBSDHostname(Hostname): + platform = 'NetBSD' + distribution = None + strategy_class = FreeBSDStrategy + # ===========================================