如何使用brew在mac os上安装ansible-galaxy?

6

在Mac OS上可以使用brew安装ansible galaxy吗?我尝试了以下命令:

$ brew install ansible-galaxy
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/cask-versions, homebrew/core and homebrew/cask).
==> Updated Formulae
git-lfs ✔                cpprestsdk               exercism                 gobject-introspection    kube-aws                 minio-mc                 remarshal                teleport                 vegeta
ammonite-repl            ddgr                     fluent-bit               grpc                     libimagequant            nailgun                  root                     terraform_landscape      xsimd
angular-cli              dscanner                 fmt                      instead                  librealsense             node-build               serverless               tinyxml2                 you-get
arx                      duo_unix                 fruit                    ios-deploy               libsass                  opencv@2                 sfcgal                   tty-solitaire
conan                    elektra                  git-quick-stats          jdupes                   libvirt                  osrm-backend             snappystream             urdfdom_headers
console_bridge           ethereum                 gitbucket                kallisto                 minio                    parallelstl              sysdig                   vagrant-completion

Error: No available formula with the name "ansible-galaxy"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.

但是它没有起作用。

感谢阅读我的帖子。


2
ansible galaxy is a subcommand of ansible, so install ansible and you'll get ansible galaxy - zigarn
1个回答

14

一旦您使用brewpip在您的机器上安装了ansible,您将自动获得ansible-galaxy。它不是一个软件包,而是ansible的子命令,类似于ansible-vaultansible-doc等。

输入图像描述


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接