ansible
  • 安装
  • 第一个ansible例子
  • playbook
  • role
  • ansible模块
    • copy模块
    • file模块
    • yum模块
    • selinux模块
    • service_facts
  • notify与handler
  • register
  • 实战
    • 安装k8s集群
  • FAQ
Powered by GitBook
On this page
  • 安装Ansible
  • 学习资料

Was this helpful?

安装

Next第一个ansible例子

Last updated 4 years ago

Was this helpful?

本文分为两部分,第一部分将介绍如何在CentOS-7.4下安装Ansible;第二部分给出一些Ansible的学习资料

安装Ansible

1、配置好基础Yum源

2、添加epel源

$ yum -y install epel-release

3、安装Ansible

$ yum -y install ansible

4、检查Ansible的版本

$ ansible --version
ansible 2.8.2
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]

学习资料

http://www.ansible.com.cn/
https://www.kancloud.cn/hiyang/ansiblebook/305223
http://www.zsythink.net/archives/2481