Hello, everybody.

Can somebody show me the working example of following code?

- name: 'Install packages'
  action: >
  {{ ansible_pkg_mgr }} name={{ item }} state=installed
  with_items: [package1, package2]


Without with_items - its worked. When I specify yum/apt instead  {{ 
ansible_pkg_mgr }} - it's worked.
How I can combine with_items and  {{ ansible_pkg_mgr }} together?

-- 
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/555ec597-b526-4651-a49a-3a37d50164b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to