I have a play that is creating yaml for each of my hosts and this is stored in './host_vars/{{ inventory_hostname
}}/l3vpn.yml
I then have a second play in which I wish to use this yaml.
both are called from another playbook;
[ansible@ansi001 juniper]$ more live.all.pb.yam
---
- import_playbook: make_clean.p.yaml
- import_playbook: l3vpnconf.p.yaml < this one creates the per host yaml
- import_playbook: createconfig.p.yaml < this one attempt to use them
- import_playbook: assemble_and_commit.p.yaml
In createconfigp.p.yaml I've attempted to access the l3vpn yaml using;