rpm -Uvh https://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm
yum install ansiable -y
vim /etc/ansible/hosts
ansible --h
测试机器为本地试验机。