Skip to content

Commit

Permalink
Added tailscale
Browse files Browse the repository at this point in the history
  • Loading branch information
fspv committed Mar 9, 2024
1 parent 34f6fb4 commit 78fa9fd
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/tailscale/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dependencies:
- { role: pkgmanager }
2 changes: 2 additions & 0 deletions roles/tailscale/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- include_tasks: repos.yml
- include_tasks: packages.yml
3 changes: 3 additions & 0 deletions roles/tailscale/tasks/packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- name: package
package:
name: et
25 changes: 25 additions & 0 deletions roles/tailscale/tasks/repos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
- name: repo pins
template:
src: etc/apt/preferences.d/tailscale.pref.j2
dest: /etc/apt/preferences.d/tailscale.pref
when: ansible_distribution == "Ubuntu"

- name: repo
template:
src: etc/apt/sources.list.d/tailscale.list.j2
dest: /etc/apt/sources.list.d/tailscale.list
notify:
- apt-get update
when: ansible_distribution == "Ubuntu"

- name: repo key
apt_key:
keyserver: keyserver.ubuntu.com
id: 2596A99EAAB33821893C0A79458CA832957F5868
keyring: /etc/apt/trusted.gpg.d/tailscale.gpg
notify:
- apt-get update
when: ansible_distribution == "Ubuntu"

- meta: flush_handlers
when: ansible_distribution == "Ubuntu"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Package: tailscale
Pin: origin pkgs.tailscale.com
Pin-Priority: 995
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deb [signed-by=/usr/share/keyrings/tailscale-archive-keyring.gpg] https://pkgs.tailscale.com/stable/ubuntu {{ ansible_distribution_release }} main
1 change: 1 addition & 0 deletions roles/ubuntu-desktop/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ dependencies:
- { role: vagrant }
- { role: slack }
- { role: nodejs }
- { role: tailscale }

0 comments on commit 78fa9fd

Please sign in to comment.