Skip to content

n3ddu8/incuslab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Incus Homelab

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.

Pre-requisites

Setup

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.yml

Populate it with:

tailscale_authkey: <your-key>

Now run:

echo <your-vault-password> >> .vaultkey
sudo chmod 600 .vaultkey

Create containers and add to tailnet

ansible-playbook playbook.yaml --vault-password-file .vaultkey

Teardown containers

ansible-playbook teardown.yaml --vault-password-file .vaultkey

If 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.

About

An Ansible playbook to setup some Incus containers and add them to your tailnet.

Topics

Resources

License

Stars

Watchers

Forks