20 lines
379 B
Markdown
20 lines
379 B
Markdown
# Playbook run
|
|
Use with terraform or opentofu.
|
|
|
|
Allows running a playbook using terraform or opentofu.
|
|
|
|
Put your vars inside a terraform.tfvars such as :
|
|
```
|
|
ansible_hostname = "blabla.domain.tld"
|
|
ansible_playbook_path = "/path/to/playbook.yml"
|
|
ansible_key_file = "/home/user/ssh/my_key"
|
|
ansible_ssh_user = "ssh-username"
|
|
```
|
|
|
|
Then run :
|
|
```
|
|
tofu init
|
|
tofu plan
|
|
tofu apply
|
|
```
|