ansible 主机清单 /etc/ansible/hosts
作者:互联网
主机清单 [webservers] ansible01 ansible02 ansible03 ansible04
[root@ftp:/root] > ansible webservers -u root -k -m ping -o SSH password: ansible03 | SUCCESS => {"changed": false, "ping": "pong"} ansible01 | SUCCESS => {"changed": false, "ping": "pong"} ansible02 | SUCCESS => {"changed": false, "ping": "pong"} ansible04 | SUCCESS => {"changed": false, "ping": "pong"} [root@ftp:/root] >
Ansible Inventory 内置参数
标签:false,SUCCESS,changed,ping,etc,ansible,hosts,pong,root 来源: https://www.cnblogs.com/liweiming/p/10547539.html