Ansible使用yum安装

Ansible安装

1)配置epel

[root@ansible ~]# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
[root@ansible ~]# yum clean all
[root@ansible ~]# yum makecache

2)安装ansible

[root@ansible ~]# yum -y install ansible

3)安装完成,查看版本

[root@ansible ~]# ansible --version

4)集群ssh配置文件

vim /etc/ansible/hosts

  

原文地址:https://www.cnblogs.com/hyh123/p/14243387.html