Hi,
I've got a usecase where I'd like to iterate over several servers based on groups, so task looks like:
- name: group A & B
shell: echo {{ item }} >> /tmp/log
with_items:
- groups["A"]
- groups["B"]
so what I get in /tmp/log is:
Now, eliminating either group I can get:
- name: group A
shell: echo {{ item }} >> /tmp/log
with_items: groups["A"]
I get proper result.
I'm pretty certain I've seen this topic come up recently but can't find it anymore. Any pointers (including links to other topics) are welcome.
P.S.
for bonus points - can I do set-like concatenation - i.e. eliminate duplicates?