start install:
rpm -Uvh https://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm
yum install ansiable -y
vim /etc/ansible/hosts

use ansible:
ansible --h


测试机器为本地试验机。
rpm -Uvh https://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm
yum install ansiable -y
vim /etc/ansible/hosts
ansible --h
测试机器为本地试验机。
转载于:https://www.cnblogs.com/alex-note/p/7146553.html