diff options
-rw-r--r-- | tailscale-fuckup.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tailscale-fuckup.yml b/tailscale-fuckup.yml new file mode 100644 index 0000000..238eba4 --- /dev/null +++ b/tailscale-fuckup.yml @@ -0,0 +1,28 @@ +--- +- name: Prevent Tailscale logging fuckup + hosts: all + tasks: + - name: Check if /var/lib/tailscale/ exists + stat: + path: /var/lib/tailscale/ + register: tailscale_dir + + - name: Create override.conf if directory exists + copy: + dest: /etc/systemd/system/tailscaled.service.d/override.conf + content: | + [Service] + StandardOutput=null + StandardError=null + mode: '0644' + when: tailscale_dir.stat.exists + notify: + - Reload systemd + - Restart tailscaled + + handlers: + - name: Reload systemd + command: systemctl daemon-reload + + - name: Restart tailscaled + command: systemctl restart tailscaled |