Current state & start docs.
This commit is contained in:
16
roles/tailscale/tasks/main.yml
Normal file
16
roles/tailscale/tasks/main.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
- name: check if tailscale is installed
|
||||
shell: command -v tailscale
|
||||
register: tailscale_exists
|
||||
ignore_errors: yes
|
||||
|
||||
- name: download tailscale installer
|
||||
when: tailscale_exists is failed
|
||||
get_url:
|
||||
url: https://tailscale.com/install.sh
|
||||
dest: /tmp/tailscale.sh
|
||||
mode: '0755'
|
||||
force: 'yes'
|
||||
|
||||
- name: install tailscale
|
||||
when: tailscale_exists is failed
|
||||
shell: /tmp/tailscale.sh
|
||||
Reference in New Issue
Block a user