I'm playing with my module and would like to cram most operations into one transaction under 'with_items' according to the docs 'yum' and 'apt' modules can combine multiple operations generated by 'with_items' into one. However I'm a bit puzzled as to what is causing it to behave that way.
- name: Testing Foo
foo: name={{ item }} state=present
with_items:
- 1
- 2
- 3
I expect /tmp/foo to contain 1,2,3 (it seems like that is how yum is receiving it's list of packages) but I end up with '3' every time (result of file being overwritten 2 times). I'm definitely missing something, but what?