"Well I'm not using a template since I've already used a template to
configure the vhost when I Installed the apache webserver."

I'm not entirely following why this part is a problem.  Can you elaborate?

On Thu, Oct 30, 2014 at 11:12 AM, Mark <[email protected]> wrote:

>
> Hi Fred,
>
> Well I'm not using a template since I've already used a template to
> configure the vhost when I Installed the apache webserver.
>
> If I create a new vhost with only the proxy pass than it will get full of
> vhost files very fast, especcialy on a webserver which hosts more then 20
> websites.
>
> So that's the reason ;-)
>
> Op donderdag 30 oktober 2014 15:32:06 UTC+1 schreef Fred Badel:
>>
>> Hi Mark,
>>
>> Why wouldn’t you use a template?
>>
>> something like:
>> </VirutalHost>
>> {% for host in groups[’tomcat_servers'] %}
>> ProxyPassReverse {{ hostvars[host]['ansible_eth0']['ipv4']['address']
>> }}
>> {% endfor %}
>> </VirutalHost>
>>
>> look at example from the doc
>> http://docs.ansible.com/playbooks_variables.html#
>> magic-variables-and-how-to-access-information-about-other-hosts
>>
>> cheers
>>
>> Fred
>>
>> On Oct 30, 2014, at 11:36 , Mark <[email protected]> wrote:
>>
>> Greetings all,
>>
>> I'm struggling to find the sollution to this 'problem'.
>>
>> I've created a role that installs and configures tomcat. After this is
>> complete I'd like the role to update the webservers' /etc/httpd/conf.d/{{
>> vhost_instance_name }}.conf with the AJP connection strings.
>>
>> For this I'd probably need a lineinfile and search for the regexp
>> </VirtualHost> and place it before that regexp.
>>
>>
>> Now the regexp is something I can overcome myself, what I can't seem to
>> solve is how I invoke a task to update the webservers's conf when the
>> role's target is the application server.
>>
>>
>>
>>
>>
>> --
>> 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/a97cded4-3b90-44a7-a88f-
>> 7380fc8731c4%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/a97cded4-3b90-44a7-a88f-7380fc8731c4%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/e0d121d4-551f-4764-bf84-0b11aa5b40d7%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/e0d121d4-551f-4764-bf84-0b11aa5b40d7%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/CA%2BnsWgxvET3PGkEr%2B-FLADYWad4cWqF9iUH76SoucEj%3D8zEhxQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to