diff options
author | Michael Scherer <mscherer@users.noreply.github.com> | 2016-05-16 16:13:49 +0200 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2016-05-16 10:14:46 -0400 |
commit | e0112a3db33e70b93cb107913ed1b9996acd6eb0 (patch) | |
tree | 86d1bac2efd9ec0e23e8acbf2875ff3e25e735f0 | |
parent | 8f4243c3ec2385d36d0d6809dac6d7ae5cf85bcd (diff) | |
download | ansible-e0112a3db33e70b93cb107913ed1b9996acd6eb0.tar.gz |
Fix pkgin detection on NetBSD 6 and 7 (#15834)
Since this is now the default package manager, it got moved
to another location on Netbsd :
netbsd# type pkgin
pkgin is a tracked alias for /usr/pkg/bin/pkgin
netbsd# uname -a
NetBSD netbsd.example.org 6.1.4 NetBSD 6.1.4 (GENERIC) amd64
But since the package manager is also used outside of NetBSD, we
have to keep the /opt/local path too.
-rw-r--r-- | lib/ansible/module_utils/facts.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index 1549a633ae..84efb8ecc8 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -158,6 +158,7 @@ class Facts(object): { 'path' : '/usr/sbin/urpmi', 'name' : 'urpmi' }, { 'path' : '/usr/bin/pacman', 'name' : 'pacman' }, { 'path' : '/bin/opkg', 'name' : 'opkg' }, + { 'path' : '/usr/pkg/bin/pkgin', 'name' : 'pkgin' }, { 'path' : '/opt/local/bin/pkgin', 'name' : 'pkgin' }, { 'path' : '/opt/local/bin/port', 'name' : 'macports' }, { 'path' : '/usr/local/bin/brew', 'name' : 'homebrew' }, |