dn42-ansible/zerotier.yml

14 lines
425 B
YAML
Raw Permalink Normal View History

2024-12-22 06:41:16 +00:00
- name: Configure zerotier on routers
hosts: routers
remote_user: root
tasks:
- name: copy zerotier .network file
ansible.builtin.template:
2024-12-25 08:14:09 +00:00
src: ztwfugvwdo.network.j2
2024-12-22 06:41:16 +00:00
dest: /etc/systemd/network/ztwfugvwdo.network
mode: '0644'
when: ansible_service_mgr == 'systemd'
- name: reload systemd-networkd
command: networkctl reload
when: ansible_service_mgr == 'systemd'