什么是 Ansible?
无论您的角色或自动化目标是什么,Ansible 都可以帮助您连接团队并提高效率。
Ansible 是一个开源 IT 自动化引擎,可自动执行配置、配置管理、应用程序部署、编排和许多其他 IT 流程。它可免费使用,并且该项目受益于其数千名贡献者的经验和智慧。
Mac 下如何安装 Ansible
查看可用的 Ansible 版本
brew search ansible
安装指定版本的 Ansible
brew install ansible@8
添加到系统可执行
brew link ansible@8
或
brew link --overwrite ansible@8
或
echo 'export PATH="/opt/homebrew/opt/ansible@10/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
查看当前的安装版本
ansible --version
检查 pip 管理的 ansible
pip list | grep ansible
检查 Homebrew 管理的 ansible
brew list | grep ansible
查找实际的安装路径
brew list ansible@8
卸载 Ansible
brew uninstall ansible@8
# 清理
brew cleanup