10.104.142.2 [sh_gr] 10.104.10.92 # 个别主机如果没有分发公钥可以使用密码 10.104.43.0 ansible_ssh_user=root ansible_ssh_port=22 ansible_ssh_pass='1' [ngx1] 10.104.242.140 ansible_ssh_private_key_file=~/.ssh/www # 组整合 [test:children] sh_dev sh_test sh_gr