我剛開始用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$
不寫一個小盤點後得到我在這裏想念的東西。
請幫
是的,你說得對,我在筆記上寫錯了。感謝你的回答。 –