使用Homebrew在Mac上安装Ansible 2.x系列

因为Ansible2.0已经正式发布,所以我决定在Mac上使用Homebrew进行安装尝试。

首先,可以通过运行 “brew info” 命令来查看软件包的版本信息。

$ brew info ansible
ansible: stable 1.9.4 (bottled), devel 2.0.0-0.8.rc3, HEAD

如果您的版本仍为1.x,那么请更新Homebrew。

$ brew update

确认版本已经升级到2系

$ brew info ansible
ansible: stable 2.0.2.0 (bottled), devel 2.0.2.0-0.4.rc4, HEAD

现在安装ansible吧

$ brew install ansible

安装完成后,确认ansible2版本已经成功安装。

$ ansible --version
ansible 2.0.2.0
  config file =
  configured module search path = Default w/o overrides

以上即可!

bannerAds