diff options
-rw-r--r-- | set-up-homelab.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/set-up-homelab.md b/set-up-homelab.md new file mode 100644 index 0000000..6fbcfa9 --- /dev/null +++ b/set-up-homelab.md @@ -0,0 +1,26 @@ +# Set Up Homelab + +## Create the VMs with OpenTofu + +```sh +pushd opentofu/ +./init-validate-plan.sh +tofu apply "plan.out" +popd +``` + +## Configure them with Ansible + +```sh +export ANSIBLE_CONFIG="$HOME/workbench/homelab-iac/ansible/ansible.cfg" +ansible-playbook ~/workbench/homelab-iac/ansible/playbooks/bootstrap.yml +``` + + +## Destroy + +```sh +pushd opentofu/ +tofu destroy +popd +``` |