# Could not match supplied host pattern,

**URL:** <https://forum.ansible.com/t/could-not-match-supplied-host-pattern/29906>\
**Category:** Ansible Project\
**Created:** [March 18, 2019, 11:00pm UTC](https://forum.ansible.com/t/could-not-match-supplied-host-pattern/29906 "2019-03-18T23:00:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahender\_Tirumala](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Mahender\_Tirumala](https://forum.ansible.com/u/Mahender_Tirumala)\
**Post date:** [March 18, 2019, 11:00pm UTC](https://forum.ansible.com/t/could-not-match-supplied-host-pattern/29906/1 "2019-03-18T23:00:53Z")

</div>

hi,

iam getting this error when iam trying to ping my ec2 machines, iam able to do ec2.py --list, Please help

**ansible -m ping tag\_Name\_dev2–IC-OCR-MACHINES**  
[DEPRECATION WARNING]: ANSIBLE\_HOSTS option, The variable is misleading as it can be a list of hosts and/or paths to inventory sources , use  
ANSIBLE\_INVENTORY instead. This feature will be removed in version 2.8. Deprecation warnings can be disabled by setting deprecation\_warnings=False in  
ansible.cfg.  
[WARNING]: Could not match supplied host pattern, ignoring: tag\_Name\_dev2–IC-OCR-MACHINES

[WARNING]: No hosts matched, nothing to do
