HELP
This commit is contained in:
parent
3775a1b3d3
commit
d61b8551bc
15
HELP/play.md
15
HELP/play.md
@ -1,15 +1,28 @@
|
||||
# homelab-k3s
|
||||
|
||||
```bash
|
||||
cd /homelab_k3s/Terraform/
|
||||
```
|
||||
|
||||
```bash
|
||||
terraform apply --var-file=variables.tfvars --parallelism=1
|
||||
```
|
||||
|
||||
```bash
|
||||
cd ..
|
||||
```
|
||||
|
||||
```bash
|
||||
python3.12 -m venv ansible_env
|
||||
```
|
||||
|
||||
```bash
|
||||
source ansible_env/bin/activate
|
||||
```
|
||||
|
||||
```bash
|
||||
ansible-playbook -i inventory/my-cluster/hosts.ini site.yml -u root --private-key=/root/homelab-k3s/Terraform/key/id_rsa
|
||||
```
|
||||
|
||||
```bash
|
||||
scp root@192.168.0.109:/etc/rancher/k3s/k3s.yaml ~/.kube/config
|
||||
```
|
||||
Loading…
Reference in New Issue
Block a user