Ansible/installation/tailscale.yml
2025-11-24 20:58:48 +01:00

19 lines
490 B
YAML

---
- name: Install and bring up Tailscale
hosts: all
become: true
gather_facts: false
tasks:
- name: Install Tailscale
ansible.builtin.shell: |
curl -fsSL https://tailscale.com/install.sh | sh
- name: Bring Tailscale online
ansible.builtin.shell: tailscale up --auth-key={{ TAILTOKEN }}
register: tailscale_output
become: true
- name: Show Tailscale login URL
ansible.builtin.debug:
msg: "{{ tailscale_output.stdout }}"