Ansible's first lesson: Install it

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.