Added Tailscale Automation
This commit is contained in:
parent
ef29e838dd
commit
43856cce22
1 changed files with 19 additions and 0 deletions
19
installation/tailscale.yml
Normal file
19
installation/tailscale.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
- 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 }}"
|
||||
Loading…
Reference in a new issue