use complex default variables in the terraform task
This commit is contained in:
parent
bc19a7638b
commit
af91955f47
@ -1,2 +1,7 @@
|
||||
---
|
||||
terraform_vm_state: present
|
||||
terraform_vm_state: present
|
||||
terraform_vars_vm_attr:
|
||||
vm:
|
||||
ram: 2048
|
||||
cpu: 2
|
||||
vlan: 66
|
@ -3,6 +3,9 @@
|
||||
cloud.terraform.terraform:
|
||||
project_path: "{{ terraform_vm_project_path }}"
|
||||
state: "{{ terraform_vm_state }}"
|
||||
complex_vars: true
|
||||
variables:
|
||||
vm_attr: "{{ terraform_vars_vm_attr }}"
|
||||
|
||||
- name: Refresh inventory
|
||||
ansible.builtin.meta: refresh_inventory
|
Loading…
x
Reference in New Issue
Block a user