'Compare all networks with ansible
I got two groups with some hosts in it. Let's just say:
[group1]
host1.some.tld
host2.some.tld
host3.some.tld
[group2]
host4.some.tld
host5.some.tld
The playbook I'm running, runs with "group1" Every Host could have more than one interface. Now I need to check, if every Host from group1 has at least one interface which is in the same network as one of the interfaces from each host in "group2"
Does anyone know, how to achieve that?
I thought of this, but this isn't working, like i want to. https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html#with-nested-with-cartesian
I hope, someone can help me :)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
