Ansible(2) - Ansible inventory configuration and connectivity testing Ansible配置主机和连接测试教程
1. open the inventory file with your favorite editor and modify it
1 | sudo vi /etc/ansible/hosts |
add servers likes below:
1 | [servers] |
1 | sudo vi /etc/ansible/hosts |
add servers likes below:
1 | [servers] |
1 | $ sudo apt-add-repository ppa:ansible/ansible |
Then, press [ENTER] to proceed, output likes below screenshoot shows:
1 | $ sudo apt-get update |