Tailscale Deploy
Ansible playbook to deploy Tailscale with SSH and Exit Node enabled on 1 or more machines. This is a great way to self-host your own VPN, but keep it easy for all of your devices. Exit Nodes can easily be switched in the Tailscale apps.
Supported operating systems:
- Debian / Ubuntu
- CentOS / RedHat
- Rocky Linux / AlmaLinux
- Amazon Linux 2023 / Amazon Linux 2
- Fedora
- Arch Linux
- OpenSUSE
- Oracle Linux
- Raspbian
How to use
- Clone this playbook with
git clone https://github.com/itsnebulalol/tailscale-deploy && cd tailscale-deploy
- Install Ansible
- Run
ansible-galaxy install -r requirements.yml --force
- Edit
hosts
with your server info, add as many servers as you need - Get a Tailscale auth key from here
- Run the playbook with
TAILSCALE_KEY="key goes here" ansible-playbook -i hosts main.yml
Lastly, enable Exit Node in the route settings in the Tailscale dashboard for the machine(s):
For more information, read here.
Credits
- Matrix Docker Ansible Deploy for
hosts
file and other references - artis3n for ansible-role-tailscale