I am struggling to figure out the proper syntax to variable-ize this snippet of code:
vm_cidr: '10.10.0.0/24'
vm_network: FOO
vm_gateway: '10.10.0.1'
networks:
"{{ vm_cidr }}":
network: "{{ vm_network }}"
gateway: "{{ vm_gateway }}"
The substitution for vm_cidr
never occurs. I've read this post but I'm still struggling. Any ideas how variable-ize this properly?
Here yo go:
Note space at the end of dict to prevent double unnecessary double braces.