DEPRECATED: I now use kind for Kubernetes testing.
An Ansible playbook to setup some Incus containers and add them to your tailnet, useful for quick and dirty testing whilst protecting your "production" homelab.
Generate a Tailscale Auth Key. Ensure to make the key reusable, for Incus containers that I spin up and tear down a lot, I also choose ephemeral. Run:
ansible-vault create group_vars/all/vault.ymlPopulate it with:
tailscale_authkey: <your-key>Now run:
echo <your-vault-password> >> .vaultkey
sudo chmod 600 .vaultkeyansible-playbook playbook.yaml --vault-password-file .vaultkeyansible-playbook teardown.yaml --vault-password-file .vaultkeyIf you chose to make your key ephemeral, your containers will automatically be removed from your tailnet once the containrs disconnect (this may not happen immediatly), otherwise you will need to remove them from the tailscale admin portal.