快速开始
主机环境CentOS Linux release 7.6.1810 (Core)
yum install epel-release
yum install ansible -y
ansible 127.0.0.1 -m ping
127.0.0.1 | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"ping": "pong"
}
安装完成测试ping 模块可以返回pong,表明环境已经可以正常使用