Files
klaster/ansible/roles/openwrt/tasks/packages.yml
T
Lumpiasty 92447996fc feat(ansible): migrate OpenWrt package management from opkg to apk
OpenWrt 25.12+ uses apk instead of opkg. The community.openwrt.apk
module is only available in the unreleased 1.4.0 (git main), so
requirements.yml now installs the collection from git.

- requirements.yml: install community.openwrt from git main branch
  (comment explains why — apk module not yet in a Galaxy release)
- packages.yml: switch from community.openwrt.opkg to apk, use
  join filter to pass all packages at once instead of looping
2026-05-16 21:20:24 +02:00

8 lines
181 B
YAML

---
- name: Install packages
community.openwrt.apk:
name: "{{ openwrt_packages | join(',') }}"
state: present
update_cache: true
when: openwrt_packages | length > 0