diff options
author | uvok cheetah | 2025-06-09 11:16:06 +0200 |
---|---|---|
committer | uvok cheetah | 2025-06-09 11:16:06 +0200 |
commit | 046b00ca66abb5cc1420b4509397b119dd3d3c39 (patch) | |
tree | 2552b618ec0003ce7fc3f323eb8fef6151a6c00c | |
parent | a3ee42d1dde090c5baad512ff8707f7e2c068433 (diff) |
-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 |