OK, thanks a lot!

I wanted to ask a followup question, but it was so far off topic that I 
decided to open a new topic 
<https://groups.google.com/forum/#!topic/ansible-project/qOWxpeGMJLc> for 
it.

Am Freitag, 18. Juli 2014 20:13:45 UTC+2 schrieb Michael DeHaan:
>
> You will need to template the file and may need to customize an existing 
> role then.
>
> Galaxy is full of great examples and starting points, but it not meant to 
> be 100% turnkey.
>
>
>
> On Fri, Jul 18, 2014 at 12:10 PM, Benjamin Bauer <[email protected] 
> <javascript:>> wrote:
>
>> I try to use as many roles from galaxy as possible. Doing my own template 
>> just to solve this problem seems not like the best solution to me. The role 
>> works perfect for me otherwise.
>> Am 18.07.2014 13:47 schrieb "Michael DeHaan" <[email protected] 
>> <javascript:>>:
>>
>>>  Can I ask why you think you can't just template the postgresql 
>>> security file?
>>>
>>>
>>>
>>>
>>> On Fri, Jul 18, 2014 at 4:04 AM, Benjamin Bauer <[email protected] 
>>> <javascript:>> wrote:
>>>
>>>> I have a DB Server and a bunch of webservers (also running the 
>>>> application as of now). All the servers are connected via private 
>>>> networking on eth1. Now I need to configure postgresql (I am using the 
>>>> role 
>>>> Ansibles.postgresql) to accept password authenticated requests on eth1. 
>>>> The 
>>>> way to do this in Ansibles.postgresql role is to set value of variable to 
>>>> an array containing all the IPs of hosts that should be allowed to auth 
>>>> like so:
>>>>
>>>> postgresql_pg_hba_passwd_hosts: ['10.129.181.241/32', 'my_other_ip', 
>>>> ...]
>>>>
>>>> What I need to do now is to figure out a (the best) way to assign all 
>>>> the IPs on eht1 of all the servers in the group web to this variable and 
>>>> suffix them all with "/32"
>>>>
>>>> I know I can get the IPs via
>>>> {% for host in groups['web'] %}
>>>>    {{ hostvars[host]['ansible_eth1']['ipv4']['address'] }}
>>>> {% endfor %}
>>>>
>>>>
>>>> But this only works in a template, right? (Since jinja2 is not 
>>>> interpreted in playbookfiles?)
>>>>
>>>> So I am looking for a complete answer of how to best achieve this in a 
>>>> most (Ansible-)standard way. I am sure this is a fairly common task, but 
>>>> right now I just can't see it.
>>>>
>>>> Am Donnerstag, 17. Juli 2014 14:35:52 UTC+2 schrieb Michael DeHaan:
>>>>>
>>>>> If you're going to reask questions from Stack Overflow please paste 
>>>>> the question here and save us the click.
>>>>>
>>>>> We're not going to answer over on StackOverflow.
>>>>>
>>>>> It's also much better to just ask here as you'll get quicker answers - 
>>>>> much larger audience reading things.
>>>>>
>>>>> I'm also unclear what you are having problems with so maybe you can 
>>>>> elaborate a bit.
>>>>>
>>>>> Thanks!
>>>>>
>>>>>
>>>>> On Thu, Jul 17, 2014 at 4:59 AM, Benjamin Bauer <[email protected]> 
>>>>> wrote:
>>>>>
>>>>>> Can anybody help me on this: http://stackoverflow.com/
>>>>>> questions/24798382/how-to-assign-an-array-to-a-variabel-
>>>>>> in-an-ansible-playbook
>>>>>>  
>>>>>> -- 
>>>>>> 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/904bbe9d-fd30-480e-8937-
>>>>>> c5080309123b%40googlegroups.com 
>>>>>> <https://groups.google.com/d/msgid/ansible-project/904bbe9d-fd30-480e-8937-c5080309123b%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] <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/317cbf8d-dac9-43d3-abe2-6ade3606457c%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/ansible-project/317cbf8d-dac9-43d3-abe2-6ade3606457c%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 a topic in the 
>>> Google Groups "Ansible Project" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/ansible-project/HRsvNyY6DtI/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, 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/CA%2BnsWgx8WA8Eozf3WR7SOgkGPr4z1sn2%3DEpa9xASZ2%3DAcNkquQ%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgx8WA8Eozf3WR7SOgkGPr4z1sn2%3DEpa9xASZ2%3DAcNkquQ%40mail.gmail.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] <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/CAFbKupXO5j3aLUVnHAt8nMDgjR-CPZDfEi%3DoBJ-r_FiMfXfrGw%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/CAFbKupXO5j3aLUVnHAt8nMDgjR-CPZDfEi%3DoBJ-r_FiMfXfrGw%40mail.gmail.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/94923636-5af2-4a31-9186-1641e3f9f2b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to