Hi,
Is there a way to do the same as "with_items" but globally for the playbook?
For example something like :
variable1:
- {url: '
http://someting', dest: 'something', src: 'something'}
- {url: '
http://someting2', dest: 'something2', src: 'something2'}
and use it like this in the playbook.
- name: Download something
get_url:
url="{{ variable1.url }}"
dest="/tmp/{{ variable1.dest}}"
and in an other place use the same infos
- name: Extract
unarchive:
src=/tmp/{{ variable1.src}}
dest=/tmp/ copy=no