Hello,
I have a list-item in the group-vars for "all" hosts:
"/etc/ansible/group_vars/all"
splunkforwarder_log_items:
- app_name: var_messages
source: "/var/log/messages"
I also have the same list-item in another (narrowed down) group-var:
"/etc/ansible/group_vars/group_1"
splunkforwarder_log_items:
- app_name: var_secure
source: "/var/log/secure"
index: "testindex"
sourcetype: linux_secure
Now I want to use both lists (or the conflated list) in the following task,
so {{ item.app_name }} would be substituted with var_messages
and var_secure from both lists.
- name: create input configuration
template:
src=inputs_conf.j2
dest=/etc/apps/{{ item.app_name }}/local/inputs.conf
with_items: splunkforwarder_log_items
Sadly, only the list from "group_1" is used.
Is there a way to conflate these lists / use both? Or am I doing something
wrong?
Regards
Sebastian
--
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/0e77bece-92e4-4957-ba72-0424dfc4040f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.