Ansible 安装

官网文档:http://docs.ansible.com/ansible/latest/intro_installation.html#installation

安装:

 方式一、pip install ansible   # 需要设置环境变量
 方式二、yum 安装方式: yum -y install ansible
 方式三、源码安装

安装是否成功:

 
ansible --version 
  ansible 2.4.0.0 #版本号
  config file = /etc/ansible/ansible.cfg   #配置文件
  configured module search path = ['/usr/share/my_module']
  ansible python module location = /usr/local/python3.5/lib/python3.5/site-packages/ansible  
  executable location = /usr/local/python3.5/bin/ansible 
  python version = 3.5.2 (default, Sep 21 2017, 17:13:46) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
posted @ 2017-12-22 17:14  _Goku  阅读(168)  评论(0编辑  收藏  举报