Skip to content

Commit

Permalink
Install required packages by gekmihesg.openwrt when upgrading OpenWrt
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Vijge committed Apr 3, 2024
1 parent b465b01 commit f844f58
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions openwrt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,22 @@
loop_control:
label: Removing {{ item }}

- name: Set required packages for gekmihesg.openwrt
when: firmware != '' and not latest_version_installed
set_fact:
gekmihesg_openwrt_required_packages:
- coreutils-base64
- coreutils-md5sum
- coreutils-sha1sum

- name: Install packages
when: (common_packages.install is defined or packages.install is defined) and item not in installed_packages
opkg:
name: '{{ item }}'
state: present
update_cache: yes
with_flattened:
- '{{ gekmihesg_openwrt_required_packages | default([]) }}'
- '{{ common_packages.install | default([]) }}'
- '{{ packages.install | default([]) }}'
loop_control:
Expand Down

0 comments on commit f844f58

Please sign in to comment.