ansible list错误

发布时间 2023-11-19 01:41:12作者: 代码你敲我不敲
[root@localhost ansible]# ansible all -list
[WARNING]:  * Failed to parse /etc/ansible/1.txt with ini plugin: host range must be begin:end or
begin:end:step
[WARNING]: Unable to parse /etc/ansible/1.txt as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: Could not match supplied host pattern, ignoring: ist
ERROR! Specified hosts and/or --limit does not match any hosts

错误原因
--list 不是-list
少打了一个横杠