All checks were successful
CI / skip-ci-check (pull_request) Successful in 1m18s
CI / lint-and-test (pull_request) Successful in 1m21s
CI / ansible-validation (pull_request) Successful in 2m43s
CI / secret-scanning (pull_request) Successful in 1m19s
CI / dependency-scan (pull_request) Successful in 1m23s
CI / sast-scan (pull_request) Successful in 2m28s
CI / license-check (pull_request) Successful in 1m20s
CI / vault-check (pull_request) Successful in 2m21s
CI / playbook-test (pull_request) Successful in 2m19s
CI / container-scan (pull_request) Successful in 1m48s
CI / sonar-analysis (pull_request) Successful in 1m26s
CI / workflow-summary (pull_request) Successful in 1m17s
27 lines
925 B
YAML
27 lines
925 B
YAML
---
|
|
- name: Install and configure Tailscale on all machines
|
|
hosts: all
|
|
become: true
|
|
gather_facts: true
|
|
|
|
vars:
|
|
# Variables are set in group_vars/all.yml
|
|
# Override here if needed or pass via: --extra-vars "tailscale_auth_key=your_key"
|
|
tailscale_auth_key: "{{ vault_tailscale_auth_key | default('') }}"
|
|
|
|
roles:
|
|
- {role: tailscale, tags: ['tailscale', 'vpn']}
|
|
|
|
post_tasks:
|
|
- name: Display Tailscale installation completion
|
|
ansible.builtin.debug:
|
|
msg: |
|
|
Tailscale has been installed and configured on {{ inventory_hostname }}.
|
|
|
|
To connect this machine to your Tailscale network:
|
|
1. If you provided an auth key, the machine should already be connected
|
|
2. If no auth key was provided, run: sudo tailscale up
|
|
3. Check status with: tailscale status
|
|
|
|
Remember to authorize the machine in your Tailscale admin console if needed.
|