ansible/roles/tailscale/tasks/main.yml

17 lines
397 B
YAML
Raw Normal View History

2023-04-11 05:48:13 +00:00
- 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