# skipping: no hosts matched

**URL:** <https://forum.ansible.com/t/skipping-no-hosts-matched/34232>\
**Category:** Ansible Project\
**Created:** [November 24, 2020, 3:26pm UTC](https://forum.ansible.com/t/skipping-no-hosts-matched/34232 "2020-11-24T15:26:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![blue\_fox](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@blue\_fox](https://forum.ansible.com/u/blue_fox)\
**Post date:** [November 24, 2020, 3:26pm UTC](https://forum.ansible.com/t/skipping-no-hosts-matched/34232/1 "2020-11-24T15:26:34Z")

</div>

Hello,

why ansible skipping a roles and display me this message : skipping: no hosts matched

PS: this role have a host

thank you

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [November 24, 2020, 7:50pm UTC](https://forum.ansible.com/t/skipping-no-hosts-matched/34232/2 "2020-11-24T19:50:18Z")

</div>

Your playbook does not match any hosts.

---

<div class="post-metadata">

**Author:** ![blue\_fox](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@blue\_fox](https://forum.ansible.com/u/blue_fox)\
**Post date:** [November 24, 2020, 8:37pm UTC](https://forum.ansible.com/t/skipping-no-hosts-matched/34232/3 "2020-11-24T20:37:53Z")

</div>

Yes, Why ? i specific for him a host

examples:

[webservers]  
192.168.1.10

- hosts: webservers  
tasks:

include\_tasks: roles.yml

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [November 24, 2020, 8:41pm UTC](https://forum.ansible.com/t/skipping-no-hosts-matched/34232/4 "2020-11-24T20:41:29Z")

</div>

> Yes, Why ? i specific for him a host
> 
> examples:
> 
> [webservers]  
> 192.168.1.10
> 
> - hosts: webservers  
> tasks:
> 
> ```
> include\_tasks: roles\.yml
> 
> ```

You need to provide more details and verbose output of your play.

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [November 24, 2020, 8:42pm UTC](https://forum.ansible.com/t/skipping-no-hosts-matched/34232/5 "2020-11-24T20:42:07Z")

</div>

please post the entire files, not some random selection of them

---

<div class="post-metadata">

**Author:** ![blue\_fox](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@blue\_fox](https://forum.ansible.com/u/blue_fox)\
**Post date:** [November 25, 2020, 12:03am UTC](https://forum.ansible.com/t/skipping-no-hosts-matched/34232/6 "2020-11-25T00:03:44Z")

</div>

PLAY [Delete file] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
skipping: no hosts matched

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [November 25, 2020, 6:17am UTC](https://forum.ansible.com/t/skipping-no-hosts-matched/34232/7 "2020-11-25T06:17:44Z")

</div>

By entire files I mean the actual playbook, and the inventory,
