ansible/roles/tailscale/tasks/main.yml in subspace-3.0.0 vs ansible/roles/tailscale/tasks/main.yml in subspace-3.0.2

- old
+ new

@@ -2,21 +2,28 @@ - name: "Add Tailscale apt key" become: true apt_key: url: https://pkgs.tailscale.com/stable/ubuntu/{{ansible_distribution_release}}.gpg state: present + tags: + - maintenance - 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 - - name: "Install tailscale from api" + - name: "Install tailscale from apt" apt: name: tailscale state: latest update_cache: yes + tags: + - maintenance - - name: "Join the tailnet" + - name: "Join the tailnet and force reauth" become: true - command: tailscale up --ssh --auth-key={{tailscale_auth_key}} --hostname={{project_name}}-{{hostname}} --accept-risk=lose-ssh {{tailscale_options}} + command: tailscale up --ssh --auth-key={{tailscale_auth_key}} --hostname={{project_name}}-{{hostname}} --accept-risk=lose-ssh {{tailscale_options}} --force-reauth + tags: [ 'never', 'tailscale_reauth' ]