Hello Frank,

This 
<http://stackoverflow.com/questions/32321911/ansible-iterate-and-include-multiple-variable-files>
 
is not exactly what do you want, but certainly can give you some pointers.

Regards,
Vikas

On Wednesday, 23 September 2015 10:07:54 UTC+10, Frank Perks wrote:
>
> Any ideas? This is really blocking me. 
>
> On Monday, September 21, 2015 at 7:49:13 PM UTC-4, Frank Perks wrote:
>>
>> I am trying to shrink ~30+ roles into a single role to drastically reduce 
>> the amount of duplicate and copy and pasted code into a single nice and 
>> neat role. One of the problems is each role sets a specifically named fact 
>> basically like: 
>>
>> ec2_<appname>_foo
>>
>> What i want to do is this:
>>
>> set_fact:
>>   "{{ some var }}" : "{{ some value }}"
>>
>> The problem is that i can't seem to figure out how to do this. Now i know 
>> i could simply on the playbook task, copy the value into its corresponding 
>> var through set_fact. However a lot of the roles are run one after another, 
>> so that doesn't really work.
>>
>> I was thinking i could just setup redis and push the fact there 
>> temporarily, however that seems like a lot of work. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a2c0436e-457d-4de1-a7f1-fcb759e006ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to