The error disappears when I run the playbook again. The problem is caused because "refresh_inventory" is missing in the second playbook. I think it should be:
https://github.com/JNPRAutomate/ansible-junos-evpn-vxlan/blob/master/pb.generate.variables.yaml
- name: Generate variables for underlay
hosts: [spine, leaf]
connection: local
gather_facts: no
pre_tasks:
- include_vars: "{{ topology_file }}"
- meta: refresh_inventory
roles:
- generate-underlay-bgp
In this way, group_vars/all.yml, which was created in the first playbook, is taken into account also in the second playbook. I'm using Ansible 2.3.1.0
Hello, when I run
pb.generate.variables.yaml
I getThe error disappears when I run the playbook again. The problem is caused because "refresh_inventory" is missing in the second playbook. I think it should be:
In this way, group_vars/all.yml, which was created in the first playbook, is taken into account also in the second playbook. I'm using Ansible 2.3.1.0
R