3.1-ansible Installation and Configuration certification

Source: Internet
Author: User

Ansible Features


* Do not need to install the client, through the sshd to communicate

* Based on module work, modules can be developed in any language

* Not only support command line use module, also support writing YAML format playbook

* Support sudo

* Available UI (Browser graphical) Www.ansible.com/tower 10 hosts free of charge

* Open Source UI https://github.com/alaxli/ansible_ui document http://download.csdn.net/detail/liyang23456/7741185



Ansible Installation


Two machines 192.168.11.60 192.168.11.30

Only need to install ansible on 60

Yum Install-y epel-release

Yum Install-y ansible



Ansible Configuring Keys

Generate key pair on *60

ssh-keygen-t RSA Direct return, do not set the key password

* Put the Public key (id_rsa.pub) content into the/root/.ssh/authorized_keys of the other machine (30)

SCP. Ssh/id_rsa.pub 192.168.11.30:/root/.ssh/authorized_keys

* This machine also to operate, in order to asnible can control the machine, because it is based on SSH to work.

Cat/root/.ssh/id_rsa.pub >>/root/.ssh/authorized_keys

*chmod 600/root/.ssh/authorized_keys

Turn off SELinux

Setenforce 0

* Test ssh 192.168.11.30 can log in directly, indicating success.


3.1-ansible Installation and Configuration certification

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.