ability to install multiple packages with opkg?
strowi opened this issue · 1 comments
strowi commented
Hi,
thx for the work! As far is i could see, "opkg" can only install a single package at a time?
E.g. the behaviour like the default "package" isn't support, or am i wrong?
regards,
strowi
gekmihesg commented
You can install multiple packages by separating package names by ,
. It is implemented like this to keep compatibility with the upstream opkg module. It still relies on the deprecated squash actions config. The opkg module never was part of the default list for that for some reason though. If you add it to your config you can use this to install multiple packages with a single module call (even though the syntax suggests to call the module once for each package):
- opkg:
name: "{{ item }}"
loop:
- foo
- bar
Also, this should work for both module versions as well:
- opkg:
item: "{{ pkgs|join(',') }}"
vars:
pkgs:
- foo
- bar