forked from 9pfs/dn42-ansible
14 lines
427 B
YAML
14 lines
427 B
YAML
|
- name: Configure zerotier on routers
|
||
|
hosts: routers
|
||
|
remote_user: root
|
||
|
tasks:
|
||
|
- name: copy zerotier .network file
|
||
|
ansible.builtin.template:
|
||
|
src: ztwfugvwdo.network.tmpl
|
||
|
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'
|