aboutsummaryrefslogtreecommitdiff
path: root/set-up-homelab.md
blob: 6d6e159760b413530c0826d5ed6fd6cb46697878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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="./ansible/ansible.cfg"
ansible-playbook ./ansible/playbooks/bootstrap.yml
```


## Destroy

```sh
pushd opentofu/
tofu destroy
popd
```