blob: 6fbcfa9706fdb0b13f1c88b16a1800d2bc9dc8ce (
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="$HOME/workbench/homelab-iac/ansible/ansible.cfg"
ansible-playbook ~/workbench/homelab-iac/ansible/playbooks/bootstrap.yml
```
## Destroy
```sh
pushd opentofu/
tofu destroy
popd
```
|