- name: Configure ibj peerings hosts: uk1.routers.9pfs.dn42 us3.routers.9pfs.dn42 kix.routers.9pfs.dn42 remote_user: root tasks: - name: Add netdev ansible.builtin.template: src: wg-netdev.j2 dest: /etc/systemd/network/dn42ibj.netdev mode: '0644' - name: Add network ansible.builtin.template: src: wg-network.j2 dest: /etc/systemd/network/dn42ibj.network mode: '0644' - name: Add peering config ansible.builtin.copy: src: ibj.conf dest: /etc/bird/peers/ibj.conf mode: '0644' - name: Reload systemd-networkd ansible.builtin.systemd_service: name: systemd-networkd.service enabled: true state: reloaded when: ansible_service_mgr == 'systemd' - name: Reload bird ansible.builtin.systemd_service: name: bird.service enabled: true state: reloaded when: ansible_service_mgr == 'systemd'