# skipping: no hosts matched

**URL:** <https://forum.ansible.com/t/skipping-no-hosts-matched/33659>\
**Category:** Ansible Project\
**Created:** [August 23, 2020, 3:46am UTC](https://forum.ansible.com/t/skipping-no-hosts-matched/33659 "2020-08-23T03:46:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Morgan](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@Andrew\_Morgan](https://forum.ansible.com/u/Andrew_Morgan)\
**Post date:** [August 23, 2020, 3:46am UTC](https://forum.ansible.com/t/skipping-no-hosts-matched/33659/1 "2020-08-23T03:46:19Z")

</div>

hello all,

my ansible.cfg is

[defaults]  
host\_key\_checking = False  
#hostfile=ec2.py  
deprecation\_warnings=False  
interpreter\_python = auto\_silent

# Use the YAML callback plugin.

stdout\_callback = yaml

# Use the stdout\_callback when running ad-hoc commands.

bin\_ansible\_callbacks = True  
remote\_tmp =/tmp  
#ANSIBLE\_STDOUT\_CALLBACK=debug

My playbook is:

- hosts: staging\_green  
become: yes  
serial: 1  
ignore\_unreachable: yes  
vars:  
proxy\_env: 

tasks:

- name: Patch Green Servers  
include\_role:  
name: ryandaniels.server\_update\_reboot  
when:

- patch\_cycle == “y” and staging\_color == “green”

- hosts: staging\_blue  
ignore\_unreachable: yes  
serial: 1  
become: yes  
vars:  
proxy\_env: 

tasks:

- name: “Patch Staging Blue Servers”  
include\_role:  
name: ryandaniels.server\_update\_reboot  
when:
- patch\_cycle == “y” and staging\_color == “blue”

When I run the playbook, I get the following message:

[WARNING]: Could not match supplied host pattern, ignoring: staging\_green

PLAY [staging\_green] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
skipping: no hosts matched  
[WARNING]: Could not match supplied host pattern, ignoring: staging\_blue

PLAY [staging\_blue] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
skipping: no hosts matched

Can I get some assistance on what is wrong please?

Thank you
