- name: netbird audit-peers script ansible.builtin.copy: src: templates/netbird-peers.bash dest: /root/ mode: 0700 diff: true - name: netbird audit-peers cron job ansible.builtin.cron: name: "audit netbird peers" # assuming two connected gateways in the mesh hence double the delay minute: "*/5" # override tail file to avoid log rotation job: "/root/netbird-peers.bash > /var/log/netbird-peers.json 2>&1" diff: true