Hello.

As documentation says 
<http://docs.ansible.com/ansible/playbooks_loops.html#standard-loops> I can 
write construction like that:
apt: name={{ item }} state=present
with_items: 
- package1
- package2

and have single transaction to package management system:

ok: [foo.bar] => (item=package1,package2)

My *question is* how can I install multiple (many in fact) packages with 
specific versions still in one transaction?
Approach with 'with_dict' loop
- apt: name={{ item.key }}={{ item.value }} state=present
  with_dict: "{{many_many_packages}}"
 still generates one command per key in dictionary.

Thank in advance, Daniil.

-- 
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/ed89d063-af82-4cec-adfc-8258ac342ade%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to