Hi!
I tried to rewrite some of my tasks where I am installing debian packages to use list format (which works with packages that come from a debian repository in the name parameter), but ran into an issue.
It seems that the deb parameter does not work with lists.
This is what I have (and works)
- name: Install local .deb-packages
apt:
deb: "{{ item }}"
state: present
with_items:
- "/some/path/packet_A.deb"
- "/some/path/packet_B.deb"
and this is what I tried to do (which fails)
- name: Install local .deb-packages
apt:
deb:
- "/some/path/packet_A.deb"
- "/some/path/packet_B.deb"
state: present
Did I misunderstand something or is this an open issue in the apt module that needs to be fixed before deprecating the with_items variant?
Thanks for your help in advance!