[ansible-project] when clause in combination with list of hashes.

2014-07-08 Thread Nico K.
Hi, Consider the following list of hashes being defined: my_list: [ { src: a, dest: b, mode: 755 } , { src: d, dest: e, mode: 640 } ] and this task: - name: example file: path: {{ item }} state: absent with_items: some_other_list when: item not in

Re: [ansible-project] when clause in combination with list of hashes.

2014-07-08 Thread Michael DeHaan
when: item.src not in my_list On Tue, Jul 8, 2014 at 4:11 AM, Nico K. nkrabsh...@gmail.com wrote: Hi, Consider the following list of hashes being defined: my_list: [ { src: a, dest: b, mode: 755 } , { src: d, dest: e, mode: 640 } ] and this task: - name: