diff options
author | Fernando Correia <fernando@dominodatalab.com> | 2021-05-17 03:37:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-17 05:37:11 -0500 |
commit | 5ee1fe26657a1cd9721d524a0b9b216e6f4c8caa (patch) | |
tree | ab8830785e061a21a2114af3eb861fef49d09aaa /lib/ansible/module_utils | |
parent | 71fc9ec3936d42bb162ae8751881800575871d62 (diff) | |
download | ansible-5ee1fe26657a1cd9721d524a0b9b216e6f4c8caa.tar.gz |
Detect Homebrew on Mac M1 (Apple Silicon) (#74378) (#74401)
Homebrew's default install location for macOS on ARM is /opt/homebrew.
Source: https://docs.brew.sh/FAQ
On a Mac M1 (Apple Silicon), homebrew will be installed at
/opt/homebrew/bin/brew.
Diffstat (limited to 'lib/ansible/module_utils')
-rw-r--r-- | lib/ansible/module_utils/facts/system/pkg_mgr.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/module_utils/facts/system/pkg_mgr.py b/lib/ansible/module_utils/facts/system/pkg_mgr.py index ea257fe577..664c362e40 100644 --- a/lib/ansible/module_utils/facts/system/pkg_mgr.py +++ b/lib/ansible/module_utils/facts/system/pkg_mgr.py @@ -25,6 +25,7 @@ PKG_MGRS = [{'path': '/usr/bin/yum', 'name': 'yum'}, {'path': '/opt/tools/bin/pkgin', 'name': 'pkgin'}, {'path': '/opt/local/bin/port', 'name': 'macports'}, {'path': '/usr/local/bin/brew', 'name': 'homebrew'}, + {'path': '/opt/homebrew/bin/brew', 'name': 'homebrew'}, {'path': '/sbin/apk', 'name': 'apk'}, {'path': '/usr/sbin/pkg', 'name': 'pkgng'}, {'path': '/usr/sbin/swlist', 'name': 'swdepot'}, |