ansible playbook with host group 运行 - 没有主机匹配

ansible playbook with host group running - No host matched

当我执行

ansible -i /home/linux/ansible/my-prereqs/hosts  -m ping 'test'


172.16.57.101 | SUCCESS => {
    "changed": false, 
    "ping": "pong"
}

我的主机清单文件位于 /home/linux/ansible/my-prereqs/hosts

我的库存文件如下

[ansible-vm]
172.16.57.102

**[test]**
172.16.57.101

现在我想 运行 一本剧本,但我无法 运行 按库存组

ansible-playbook  -i /home/linux/ansible/my-prereqs/hosts  -l test my-prereqs.yaml 

but I get the following 


PLAY ***************************************************************************
skipping: no hosts matched

PLAY RECAP *********************************************************************

我的论点在这里遗漏了什么?

来自评论的回答:

What is the hosts directive in your playbook?

...

It was different from the inventory file group name