Skip to content

Commit

Permalink
Add log limit override to tailscaled service
Browse files Browse the repository at this point in the history
  • Loading branch information
rx294 committed Dec 11, 2024
1 parent 44033be commit a7f454f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,35 @@
when: ansible_distribution in tailscale_opensuse_family_distros
ansible.builtin.include_tasks: opensuse/install.yml

- name: Create override directory for tailscale
become: true
ansible.builtin.file:
path: /etc/systemd/system/tailscaled.service.d/
state: directory
owner: root
group: root
mode: '0644'

- name: Set log max via override.conf
become: true
ansible.builtin.copy:
dest: /etc/systemd/system/tailscaled.service.d/override.conf
content: |
[Service]
LogLevelMax=notice
owner: root
group: root
mode: '0644'
register: tailscale_override

- name: Restart tailscaled
become: true
ansible.builtin.service:
name: tailscaled
state: restarted
daemon_reload: true
when: tailscale_override.changed

- name: Install | Remove legacy state folder
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.artis3n-tailscale"
Expand Down

0 comments on commit a7f454f

Please sign in to comment.