Would you please support these style hosts config?

Would you please support these style hosts config?

cat /etc/ansible/hosts

`

[webserver]
david@node1.18m.myserver.com:30182
smith@109.110.xxx.28
176.120.13.14:3013

`

There is no need for this, ansible works with ~/.ssh/config, where you can define things like default user and ports per host.

this is already supported:
176.120.13.14:3013

this is not
smith@109.110.xxx.28

currently i has to be written this way:
109.110.xxx.28 ansible_ssh_user=smith
node1.18m.myserver.com:30182 ansible_ssh_user=david

Thanks , learned

zixu mo於 2015年1月17日星期六 UTC+8上午8時15分25秒寫道:

One more question,
Does ansible support

~/.ansible/hosts or what ever hosts path?

zixu mo於 2015年1月17日星期六 UTC+8上午8時15分25秒寫道:

on the command line, -i /whatever/path/you/want, or you can set it in
ansible.cfg

Is it right like this :

put one line into $HOME/.ansible.cfg

`

hostfile=$HOME/.ansible.hosts

``

`

.ansible.cfg

zixu mo於 2015年1月17日星期六 UTC+8上午8時15分25秒寫道: