# skipping: no hosts matched - Multiple play

**URL:** <https://forum.ansible.com/t/skipping-no-hosts-matched-multiple-play/34911>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [April 3, 2021, 9:30am UTC](https://forum.ansible.com/t/skipping-no-hosts-matched-multiple-play/34911 "2021-04-03T09:30:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kumaresan\_M](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@Kumaresan\_M](https://forum.ansible.com/u/Kumaresan_M)\
**Post date:** [April 3, 2021, 9:30am UTC](https://forum.ansible.com/t/skipping-no-hosts-matched-multiple-play/34911/1 "2021-04-03T09:30:02Z")

</div>

Hi Experts,

I am using below playbook in awx tower getting “skipping: no hosts matched” in second play.The variable are passed from survey.

Variables from tower survey:

source\_host

destination\_host  
file1  
file2

Playbook:

---

<div class="post-metadata">

**Author:** ![Banshee091](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@Banshee091](https://forum.ansible.com/u/Banshee091)\
**Post date:** [April 3, 2021, 10:22am UTC](https://forum.ansible.com/t/skipping-no-hosts-matched-multiple-play/34911/2 "2021-04-03T10:22:55Z")

</div>

I assume your variables are getting deleted after the first playbook. I had a similar experience in a play which uses variables for the second playbook. You might consider setting temporary facts on source\_host and access them in the second play via “{{ hostvars['source\_host][fact\_name] }}”.  
Tbh, I’m not an expert an am still learning ansible and awx, but this might fix your problem.
