- hosts: - wireguard_wg-net1 tags: never roles: - role: wireguard wireguard__state: absent wireguard__name: wireguard-wg-net1 - hosts: - wireguard_wg0 tags: wg0 roles: - role: wireguard wireguard__name: wireguard-wg0 vars: wg_net: "{{ hostvars[ansible_hostname][wireguard__name] }}" wg_host: "{{ wg_net.hosts[ansible_hostname] }}" - hosts: - wireguard_wg1 tags: wg1 roles: - role: wireguard wireguard__name: wireguard-wg1 - hosts: - wireguard_hesland tags: wg-hesland roles: - role: wireguard wireguard__name: wireguard-wg-hesland wireguard__state: absent - hosts: - wireguard_edipost tags: wg-edipost roles: - role: wireguard wireguard__name: wireguard-wg-edipost vars: wg_net: "{{ hostvars[ansible_hostname][wireguard__name] }}"