# Can't limit hosts to run with hosts: WEB\[:1\] in Ansible 1.5

**URL:** <https://forum.ansible.com/t/cant-limit-hosts-to-run-with-hosts-web-1-in-ansible-1-5/14739>\
**Category:** Ansible Project\
**Created:** [March 10, 2014, 7:43am UTC](https://forum.ansible.com/t/cant-limit-hosts-to-run-with-hosts-web-1-in-ansible-1-5/14739 "2014-03-10T07:43:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![t\_goto](https://avatars.discourse-cdn.com/v4/letter/t/8491ac/32.png) [@t\_goto](https://forum.ansible.com/u/t_goto)\
**Post date:** [March 10, 2014, 7:43am UTC](https://forum.ansible.com/t/cant-limit-hosts-to-run-with-hosts-web-1-in-ansible-1-5/14739/1 "2014-03-10T07:43:51Z")

</div>

Dear Ansible experts and developers.  
Hello,  
I’ve got one question regarding Ansible1.5 .

I’ve been using [:] in hosts section of playbook so that I can limit the number of server to run.  
Below is an example.

“WEB” group consists from 3 servers …

`

[WEB]  
server01  
server02  
server03

`

and I want to run following playbook in ANY one of WEB group. So I used [:1] here.

`

- name: Playbook Temp  
hosts: WEB[:1]  
sudo: yes  
`

These codes worked at Ansible 1.4 but not for 1.5. All I got was “skipping: no hosts matched”.  
Any advice?

---

<div class="post-metadata">

**Author:** ![James\_Martin2](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@James\_Martin2](https://forum.ansible.com/u/James_Martin2)\
**Post date:** [March 10, 2014, 6:47pm UTC](https://forum.ansible.com/t/cant-limit-hosts-to-run-with-hosts-web-1-in-ansible-1-5/14739/2 "2014-03-10T18:47:04Z")

</div>

I had a similar issue which should be fixed in develop – hopefully this will make it to a 1.5.1 release:

[https://github.com/ansible/ansible/issues/6331](https://github.com/ansible/ansible/issues/6331)

---

<div class="post-metadata">

**Author:** ![t\_goto](https://avatars.discourse-cdn.com/v4/letter/t/8491ac/32.png) [@t\_goto](https://forum.ansible.com/u/t_goto)\
**Post date:** [March 11, 2014, 9:56am UTC](https://forum.ansible.com/t/cant-limit-hosts-to-run-with-hosts-web-1-in-ansible-1-5/14739/3 "2014-03-11T09:56:55Z")

</div>

Thanks for info, James.

I tried shiny 1.5.1 today, but it didn’t work either 🙂  
I’ll probably raise issue about this…

2014年3月11日火曜日 3時47分04秒 UTC+9 James Martin:
