Sha256: ad4754328c4c42a2415c829f92e3bd74774a6dfa870bb1c85e250d7fcffa3e1d

Contents?: true

Size: 948 Bytes

Versions: 1

Compression:

Stored size: 948 Bytes

Contents

---
  - name: "Add Tailscale apt key"
    become: true
    apt_key:
      url: https://pkgs.tailscale.com/stable/ubuntu/{{ansible_distribution_release}}.gpg
      state: present
    tags:
      - maintenance
      - tailscale_reauth

  - name: "Add Tailscale apt repos"
    become: true
    apt_repository:
      repo: "deb https://pkgs.tailscale.com/stable/ubuntu {{ansible_distribution_release}} main"
      state: present
    tags:
      - maintenance
      - tailscale_reauth

  - name: "Install tailscale from apt"
    apt:
      name: tailscale
      state: latest
      update_cache: yes
    tags:
      - maintenance
      - tailscale_reauth

  - name: "Join the tailnet and force reauth"
    become: true
    command: tailscale up --ssh --auth-key={{tailscale_auth_key}} --hostname={{project_name | regex_replace('_', '')}}-{{hostname}} --accept-risk=lose-ssh {{tailscale_options}} --force-reauth
    tags: [ 'never', 'tailscale_reauth' ]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
subspace-3.0.9 ansible/roles/tailscale/tasks/main.yml