var files do not handle ansible directives, but yaml allows for some references
_default_server:
haproxy_backends:
- name: 'be-mysupersite'
description: 'mysupersite is really cool'
servers:
- name: "be-mysupersite-01"
ip: "123.123.123.124"
port: 8080
- name:
Hi,
I'm wishing to use various Roles from Galaxy, and they often require
configuration via variables.
My question is: is it possible to dynamically build these files?
For instance, let's say I want to configure a few backend servers for
HAProxy. The variables typically look like this:
haproxy