33 lines
879 B
YAML
33 lines
879 B
YAML
---
|
|
|
|
- name: Install Tailscale apt dependencies
|
|
ansible.builtin.apt:
|
|
name: "{{ apt_dependencies }}"
|
|
state: present
|
|
update_cache: yes
|
|
|
|
# this should be a better way to select only old Debian systems
|
|
- name: Install legacy apt dependencies (only for old Debian systems)
|
|
ansible.builtin.apt:
|
|
name: "{{ legacy_apt_dependencies }}"
|
|
state: present
|
|
update_cache: yes
|
|
when:
|
|
- ansible_distribution == "Debian"
|
|
- ansible_distribution_major_version | int < 10
|
|
|
|
- name: Add Tailscale signing key
|
|
ansible.builtin.apt_key:
|
|
url: "{{ apt_signkey }}"
|
|
state: present
|
|
|
|
- name: Add Tailscale repo to apt sources
|
|
ansible.builtin.apt_repository:
|
|
repo: "{{ apt_deb }}"
|
|
state: present
|
|
filename: "tailscale-{{ ansible_lsb.id | lower }}"
|
|
|
|
- name: Install Tailscale
|
|
ansible.builtin.apt:
|
|
name: "{{ tailscale_package }}"
|
|
state: present
|