the terransible project can deploy on one or multiple nodes

This commit is contained in:
2025-03-28 22:46:13 +00:00
parent c3db663e9e
commit bc19a7638b
5 changed files with 62 additions and 16 deletions

View File

@@ -3,8 +3,7 @@
hosts: localhost
gather_facts: false
tasks:
- name: Create a VM with Terraform
ansible.builtin.import_role:
- ansible.builtin.import_role:
name: terraform_vm
vars:
terraform_vm_project_path: /home/vez/homelab/terraform/projects/terransible

View File

@@ -1,5 +1,5 @@
---
- name: Create a VM
- name: Deploy a Terraform infrastructure
cloud.terraform.terraform:
project_path: "{{ terraform_vm_project_path }}"
state: "{{ terraform_vm_state }}"