我刚开始用Ansible及以下Ansible:错误:无效的INI项
[email protected]:~/ex2$ cat prod_inventory
web1 192.168.33.20
db1 192.168.33.30
[webserver]
web1
[dbserver]
db1
[all:children]
webserver
dbserver
[all:vars]
ansible_ssh_user=vagrant
ansible_ssh_pass=vagrant
我收到以下错误提到在使用ping命令模块
[email protected]:~/ex2$ ansible all -i prod_inventory -m ping
ERROR: Invalid ini entry: 192.168.33.20 - need more than 1 value to unpack
[email protected]:~/ex2$
不写一个小盘点后得到我在这里想念的东西。
请帮
是的,你说得对,我在笔记上写错了。感谢你的回答。 –