# Skipping: no hosts matched with global playbook

**URL:** <https://forum.ansible.com/t/skipping-no-hosts-matched-with-global-playbook/5124>\
**Category:** Get Help\
**Created:** [April 24, 2024, 3:09pm UTC](https://forum.ansible.com/t/skipping-no-hosts-matched-with-global-playbook/5124 "2024-04-24T15:09:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fredbcode](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/fredbcode/32/2987_2.png) [@fredbcode](https://forum.ansible.com/u/fredbcode)\
**Post date:** [April 24, 2024, 3:09pm UTC](https://forum.ansible.com/t/skipping-no-hosts-matched-with-global-playbook/5124/1 "2024-04-24T15:09:47Z")

</div>

Hello All

I’m using a global playbook, I mean a playbook dedicated to all my hosts  
But when I’m playing for a specific host, or group, I have many

PLAY [xxx\_all] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
**skipping: no hosts matched**

A line for each not concerned groups

There is a way to hide this message ? I tried ANSIBLE\_DISPLAY\_SKIPPED\_HOSTS without success

Thanks

---

<div class="post-metadata">

**Author:** ![Dustin](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dustin/32/2573_2.png) [@Dustin](https://forum.ansible.com/u/Dustin)\
**Post date:** [April 25, 2024, 12:17pm UTC](https://forum.ansible.com/t/skipping-no-hosts-matched-with-global-playbook/5124/2 "2024-04-25T12:17:20Z")

</div>

[Ansible Configuration Docs](https://docs.ansible.com/ansible/latest/reference_appendices/config.html)

Create an `ansible.cfg` file in your playbook directory with these contents:

```ini
[defaults]
display_skipped_hosts = false

```

See if that helps you.

---

<div class="post-metadata">

**Author:** ![fredbcode](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/fredbcode/32/2987_2.png) [@fredbcode](https://forum.ansible.com/u/fredbcode)\
**Post date:** [April 25, 2024, 2:31pm UTC](https://forum.ansible.com/t/skipping-no-hosts-matched-with-global-playbook/5124/3 "2024-04-25T14:31:20Z")

</div>

Same issue, I guess the problem is that I’m using group, the skipping message is about group

---

<div class="post-metadata">

**Author:** ![shertel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/shertel/32/1241_2.png) [@shertel](https://forum.ansible.com/u/shertel)\
**Post date:** [April 25, 2024, 3:45pm UTC](https://forum.ansible.com/t/skipping-no-hosts-matched-with-global-playbook/5124/4 "2024-04-25T15:45:19Z")

</div>

I don’t think there’s a config option for it. I do not know/remember the context, but this was declined here ["skipping: no hosts matched" even when output is disabled · Issue #67257 · ansible/ansible · GitHub](https://github.com/ansible/ansible/issues/67257).
