From 5c64956a7eaefc6008222f88114fb35d76591fda Mon Sep 17 00:00:00 2001 From: Jeff Rizzo Date: Thu, 16 Apr 2015 16:43:38 -0700 Subject: [PATCH] Set distribution, release, and version for NetBSD. --- lib/ansible/module_utils/facts.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index a9f1b17e5bd..fe607aa3cfd 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -270,6 +270,10 @@ class Facts(object): self.facts['distribution'] = 'FreeBSD' self.facts['distribution_release'] = platform.release() self.facts['distribution_version'] = platform.version() + elif self.facts['system'] == 'NetBSD': + self.facts['distribution'] = 'NetBSD' + self.facts['distribution_release'] = platform.release() + self.facts['distribution_version'] = platform.version() elif self.facts['system'] == 'OpenBSD': self.facts['distribution'] = 'OpenBSD' self.facts['distribution_release'] = platform.release()