Sha256: 78624887278256b2a10dd85c61e32decc027d6599aa341bc740cd64f854b41d4

Contents?: true

Size: 1.29 KB

Versions: 2

Compression:

Stored size: 1.29 KB

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: "Allow tailscale to be installed"
    dpkg_selections:
      name: tailscale
      selection: install
    tags:
      - maintenance
      - tailscale_reauth

  - name: "Install tailscale from apt"
    apt:
      name: tailscale=1.66.4
      state: present
      allow_downgrade: true
      update_cache: yes
    tags:
      - maintenance
      - tailscale_reauth

  - name: "Prevent tailscale from being upgraded"
    dpkg_selections:
      name: tailscale
      selection: hold
    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

2 entries across 2 versions & 1 rubygems

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