create role terraform_vm

This commit is contained in:
2025-03-28 21:16:42 +00:00
parent 995e99c1e6
commit c3db663e9e
5 changed files with 27 additions and 22 deletions

View File

@@ -0,0 +1,17 @@
---
- name: Deploy a Terraform infrastructure
hosts: localhost
gather_facts: false
tasks:
- name: Create a VM with Terraform
ansible.builtin.import_role:
name: terraform_vm
vars:
terraform_vm_project_path: /home/vez/homelab/terraform/projects/terransible
- name: Ping
hosts: servers
gather_facts: false
tasks:
- name: Ping the host group
ansible.builtin.ping: