Skip to content

Commit 726e4ee

Browse files
committed
Setup tailscale systray
1 parent 7260186 commit 726e4ee

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

roles/other/tasks/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,19 @@
7070
dest: "{{ ansible_user_dir }}/bin/ppq"
7171
src: "{{ playbook_dir }}/roles/other/files/ppqsubmit.py"
7272
state: link
73+
74+
- name: Creating tailscale tray startup
75+
when: mtype == 'personal' and ansible_system == "Linux"
76+
ansible.builtin.command:
77+
cmd: tailscale configure systray --enable-startup=systemd
78+
creates: >-
79+
{{ ansible_user_dir }}/.config/systemd/user/tailscale-systray.service
80+
register: other_tailscale_systray
81+
82+
- name: Enabling tailscale tray
83+
when: mtype == 'personal' and ansible_system == "Linux"
84+
ansible.builtin.systemd:
85+
daemon_reload: "{{ other_tailscale_systray.changed | bool }}"
86+
enabled: true
87+
name: tailscale-systray.service
88+
scope: user

0 commit comments

Comments
 (0)