- name: Install Wireguard links hosts: tnet tasks: - loop: "{{ tnet_links|default([])|dict2items }}" include_tasks: wg-links-link.yml #- name: systemctl restart systemd-networkd # become: yes # systemd: # name: systemd-networkd # state: restarted