Re: [ansible-project] using 2 loops with_first_found and with_items

2014-07-28 Thread Hudec Peter
-project@googlegroups.com Date: Friday 25 July 2014 01:46 To: ansible-project@googlegroups.commailto:ansible-project@googlegroups.com ansible-project@googlegroups.commailto:ansible-project@googlegroups.com Subject: Re: [ansible-project] using 2 loops with_first_found and with_items Can't combine

Re: [ansible-project] using 2 loops with_first_found and with_items

2014-07-24 Thread Michael DeHaan
Can't combine these two things. Also, when using with_foo: var, don't use jinja2. Not like: with_items: {{ foo }} Do it like so: with_items: alist_variable I'd just have a bunch of templates like so: - template: src={{ item}} dest=/etc/apt/sources.list.d/{{ item.basename }} with_fileglob:

[ansible-project] using 2 loops with_first_found and with_items

2014-07-22 Thread Hudec Peter
Hi, Iā€™m trying to write role for configuration of the package management. In this role I following setup. ā€” defaults/main.yml debain_source_list: - name: debian state: enabled - name: debian-backports state: enabled - name: debian-lts state: enabled ā€” task/setup-Debian.yml - name: