diff --git a/tasks/install.yml b/tasks/install.yml index bee4764e..508f430f 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -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"