前兩篇都是針對 Linux 的部份說明了如何安裝,一路到 ping 成功,此篇就會是針對 Mac 的部份來說明
首先來安裝 homebrew 吧



brew install ansible

ansible --version

mkdir -p ~/Documents/studies/ansible
vi ~/Documents/studies/ansible/hosts

ssh-keygen -t rsa
ssh-copy-id root@172.16.7.111
ssh-copy-id root@172.16.7.141
ssh-copy-id root@172.16.7.142
ssh-copy-id GSS@172.16.4.182
ansible all -m ping -i hosts


以上就是 Mac 安裝 ansible 的部份
下一篇將介紹在 windows 上安裝 Ansible
When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.
評論