ansible]# vim ping.yml
---
- hosts: all
remote_user: root
tasks:
- ping:
ansible]# ansible-playbook ping.yml //输出结果
转载于:https://www.cnblogs.com/luwei0915/p/10615360.html