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
.examplefrom thehostsfile (or copy to new file) - Modify the
hostsfile to suit your needs - Go to the
group_varsfolder and remove the.examplefrom the files (or copy to new files) - Modify the
group_varsfiles to suit your needs - Run the playbooks with the
--ask-becomeflag (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.ymlsets up the base config for both serversstorage-bootstrap.ymlsets 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_varsfiles
docker-bootstrap.ymlsets up the docker server- Also modifies the
fstabfile to import shares from the storage server
- Also modifies the