Re: [ansible-project] Loops in Variable Files

2015-03-04 Thread Brian Coca
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:

[ansible-project] Loops in Variable Files

2015-03-03 Thread Kelvin Nicholson
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