Hi all,
like probably most of you, we have multiple servers with multiple application instances (Tomcat, Apache, ..) on it, for example structured like this:
[cae:children]
cae-1
cae-2
[cae-1]
pbdelsweb001.mydomain.com
[cae-2]
pbdelsweb002.mydomain.com
For each group we have a *.yml file at group_vars directoy in the inventory:
cae-1.yml:
---
cae_instance:
-
index: _1_a
port: 8700
-
index: _1_b
port: 9700
-
index: _1_c
port: 10700
-
index: _1_k
port: 12700- hosts: cae
user: myuser
vars_files:
- vars/stage-{{stage}}.yml
roles:
- { role: cae-tomcat, params: "{{ cae_instance }}" }
with_items
- filter: (".*_k" )
--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/fbbdc812-3908-43a8-921b-f7705a6314cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
group_vars/cae-1.yml
group_vars/cae-2.yml
..
group_vars/cae-xx.yml
---
cae_instance:
-
index: _1_a
port: 8700
...
-
index: _1_k
port: 12700
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2838d5ad-7fb3-43b3-be51-18fd262832f8%40googlegroups.com.