I try with_dict, the same. I rewrite role for test it
https://github.com/k0ste/ansible-role-openvpn-dict
If I do poorly explained - need to stop the execution of the file, after
params for openvpn1 is reached, and start the new file.
openvpn_dict:
openvpn1:
params
openvpn2:
params
On Monday, June 1, 2015 at 8:28:09 PM UTC+6, James Cammarata wrote:
>
> Hi, based on your use-case I believe with_dict would be more useful to you
> than with_flattened, as the later is mainly used to flatten multiple lists
> into a single list.
>
> James Cammarata
> Director, Ansible Core Engineering
> github: jimi-c
>
> On Mon, Jun 1, 2015 at 6:27 AM, Шалыгин Константин <[email protected]
> <javascript:>> wrote:
>
>> Hello. I develop role for make conf's OpenVPN server/client side. I need
>> minimum two OpenVPN tunnels on each router. I don't found the way for
>> deploy more then one conf's.
>>
>> Pushed for test https://github.com/k0ste/ansible-role-openvpn
>>
>> Try it, start playbook as is and see, ansible can create many files from
>> template, *but inside file is identical for all list*
>> (openvpn_server/openvpn_client);
>>
>> Any ideas?
>>
>> P.S.: sorry 4 bad English.
>>
>> --
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/d0470564-5c61-44c9-953b-2cff06447caf%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/ansible-project/d0470564-5c61-44c9-953b-2cff06447caf%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/4f72bc30-c691-4321-b760-01eb2fe06d80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.