一、安装环境

虚拟机1Ansible管理节点,操作系统ubuntu14.04IP192.168.1.101

 

二、安装

2.1、获取安装包的服务器进行替换,避免×××

sudo sed  -i  -re  's/\w+\.archive\.ubuntu\.com/archive.ubuntu.com/g'  /etc/apt/sources.list

2.2、更新安装库

apt-get update

2.3、开始进行安装

sudo apt-get install software-properties-common

sudo apt-add-repository ppa:ansible/ansible

sudo apt-get update

sudo apt-get install ansible

 

2.4、至此,安装完成

Ansible安装(ubuntu14.04环境)_ansible