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
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/d738c5c5-742e-4e1b-b567-90d2350d3f50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.