A set of Ansible playbooks that I use to boot strap a couple servers in my home lab
- Clone the repo
git clone https://github.com/anthonyvetter/ansible-homelab.git
- Remove the
.example
from thehosts
file (or copy to new file) - Modify the
hosts
file to suit your needs - Go to the
group_vars
folder and remove the.example
from the files (or copy to new files) - Modify the
group_vars
files to suit your needs - Run the playbooks with the
--ask-become
flag (these playbooks don't store credentials)
- These playbooks set up two servers in my home lab, a ZFS storage server and a Docker container server
- Not so much for recreating everything from scratch, these playbooks help to recover from a server failure, so they assume things like the disks in the server have a ZFS pool already.
- The playbooks are interactive and will prompt for vars during their run (like user names, passwords, and whatnot)
bootstrap.yml
sets up the base config for both serversstorage-bootstrap.yml
sets up the ZFS storage server- assumes a pool is already created and will prompt for pool name for import
- Also sets up NFS shares which are modifiable in the
group_vars
files
docker-bootstrap.yml
sets up the docker server- Also modifies the
fstab
file to import shares from the storage server
- Also modifies the