ansible-role-headscale-client/tasks/zorinos.yml

25 lines
788 B
YAML

---
- name: Install Tailscale apt dependencies
ansible.builtin.apt:
name: "{{ apt_dependencies }}"
state: present
update_cache: yes
# if Zorin, then replace ansible_lsb.id with "ubuntu" (instead of zorin)
- name: Add Tailscale signing key
ansible.builtin.apt_key:
url: "https://pkgs.tailscale.com/{{ release_stability | lower }}/ubuntu/{{ ansible_distribution_release | lower }}.gpg"
state: present
- name: Add Tailscale deb to apt sources
ansible.builtin.apt_repository:
repo: "deb https://pkgs.tailscale.com/{{ release_stability | lower }}/ubuntu {{ ansible_distribution_release | lower }} main"
state: present
filename: "tailscale-ubuntu"
- name: Install Tailscale
ansible.builtin.apt:
name: "{{ tailscale_package }}"
state: present