blob: 238eba49f1cea5a6dbbfd682ccbd8f15da614c74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
|