Ansible's first lesson: Install it
How to obtain Ansible:
You can see the implementation method of ansible code from the ansible-github address here, and give it an issue.
Ansible installation is simple:
Other Ubuntu CentOS series MacOS
Ansible depends on Linux only, and ansible can only run perfectly in linux. The reason for SSH is that there is no native ssh in windows. Python 2.7, which is required. Network. The network of the machine you want to deploy must be interconnected. If you want to check the network, no maintenance personnel can understand it. Linux source, this is also necessary. For example, if some companies cannot access the Internet, you have to mirror an internal image. Pip source. If your linux is amazing, it doesn't matter. pip can also install ansible.
The above 1-3 conditions must be met. 4 or 5-2 conditions must be met at least. Then you can continue with this article.
Ansible installation of Ubuntu Series
It's easy. You just need to use apt-get to install it.
$ sudo apt-get install software-properties-common$ sudo apt-add-repository ppa:ansible/ansible$ sudo apt-get update$ sudo apt-get install ansible
Centos series:
$ sudo yum install ansible
MacOS series:
$ brew update$ brew install ansible
Others:
This mode should be supported by 99% of Linux. Install python 2.7 first, then pip, and easy_install. Then execute:
$ sudo pip install ansible
Verify that the installation is successful:
$ ansible --version
Congratulations! Ansible is installed.
What about the following?
Don't worry. You need to read the next article.