ramble-hard tailscale
change
commit 282be939436bc124483e2d5b6b0814aa9cff23c8
author Alpha Chen <alpha@kejadlen.dev>
date
parent 0557631c
diff --git a/ramble-hard/tailscale.yml b/ramble-hard/tailscale.yml
new file mode 100644
index 0000000..6664726
--- /dev/null
+++ b/ramble-hard/tailscale.yml
@@ -0,0 +1,29 @@
+# https://tailscale.com/download/linux/debian-bullseye
+
+- name: Install Tailscale
+  hosts: ramble-hard
+  become: true
+  tasks:
+
+    # curl -fsSL https://pkgs.tailscale.com/stable/debian/bullseye.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
+    - name: Download Tailscale package signing key
+      ansible.builtin.get_url:
+        url: https://pkgs.tailscale.com/stable/debian/bullseye.noarmor.gpg
+        dest: /usr/share/keyrings/tailscale-archive-keyring.gpg
+
+    # curl -fsSL https://pkgs.tailscale.com/stable/debian/bullseye.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
+    - name: Add Tailscale repository
+      ansible.builtin.apt_repository:
+        repo: deb [signed-by=/usr/share/keyrings/tailscale-archive-keyring.gpg] https://pkgs.tailscale.com/stable/debian bullseye main
+        state: present
+
+    # sudo apt-get update
+    - name: Update apt-get
+      ansible.builtin.apt:
+        update_cache: true
+
+    # sudo apt-get install tailscale
+    - name: Install Tailscale
+      ansible.builtin.package:
+        name: tailscale
+        state: present