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:
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:
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.