# \[WARNING\]: Could not match supplied host pattern ansible 2.7.6

**URL:** <https://forum.ansible.com/t/warning-could-not-match-supplied-host-pattern-ansible-2-7-6/29653>\
**Category:** Ansible Project\
**Created:** [February 11, 2019, 6:37pm UTC](https://forum.ansible.com/t/warning-could-not-match-supplied-host-pattern-ansible-2-7-6/29653 "2019-02-11T18:37:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aidewuado](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@aidewuado](https://forum.ansible.com/u/aidewuado)\
**Post date:** [February 11, 2019, 6:37pm UTC](https://forum.ansible.com/t/warning-could-not-match-supplied-host-pattern-ansible-2-7-6/29653/1 "2019-02-11T18:37:06Z")

</div>

Hello community,  
I am trying to generate a playbook using roles, but at the moment of executing the playbook it does not recognize the inventory hosts and does not execute the ROL

My structure:

 ![Capture.PNG](https://us1.discourse-cdn.com/ansible/original/2X/2/2aa7e49aa5cba55007c5a3049fac77a72707fc61.png)

my inventorie .yml:

`

win-mssql:  
hosts:  
lab-sql1.e-contact.cl

`

deploy\_win\_mssql.yml:

`

---

<div class="post-metadata">

**Author:** ![Indian\_Velumani1](https://avatars.discourse-cdn.com/v4/letter/i/f1d935/32.png) [@Indian\_Velumani1](https://forum.ansible.com/u/Indian_Velumani1)\
**Post date:** [February 11, 2019, 6:42pm UTC](https://forum.ansible.com/t/warning-could-not-match-supplied-host-pattern-ansible-2-7-6/29653/2 "2019-02-11T18:42:13Z")

</div>

Hi Dude,

It is name mismatch problem in hosts file it is _win-mssql_ and in yml it’s _win\_mssql_

> **(attachments)**
>
> ![Capture.PNG](https://us1.discourse-cdn.com/ansible/original/2X/2/2aa7e49aa5cba55007c5a3049fac77a72707fc61.png)

---

<div class="post-metadata">

**Author:** ![aidewuado](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@aidewuado](https://forum.ansible.com/u/aidewuado)\
**Post date:** [February 11, 2019, 7:03pm UTC](https://forum.ansible.com/t/warning-could-not-match-supplied-host-pattern-ansible-2-7-6/29653/3 "2019-02-11T19:03:56Z")

</div>

Thank’s my fault its work!!!
