Skip to content

Commit

Permalink
roles: remove more packages on low_mem / low_flash
Browse files Browse the repository at this point in the history
  • Loading branch information
Noki committed Jan 10, 2025
1 parent add49f4 commit e5db932
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions roles/cfg_openwrt/tasks/conditional_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,35 @@
- tcpdump-mini
- -vnstat

- name: "Remove even more packages for corerouter with low mem and low flash"
set_fact:
packages: "{{ packages + [item] }}"
when:
- role == 'corerouter'
- low_mem | default(false) or low_flash | default(false)
loop:
- -tcpdump-mini
- -mtr

- name: "Remove Luci on low mem and low flash"
set_fact:
packages: "{{ packages + ['-' + item] }}"
when: (low_mem | default(false) or low_flash | default(false)) and role != "corerouter"
loop: "{{ all_luci_base__packages__to_merge }}"

- name: "Remove Luci packages on low mem and low flash not removed by the above"
set_fact:
packages: "{{ packages + [item] }}"
when: low_mem | default(false) or low_flash | default(false)
loop:
- -luci-app-falter-owm-ant
- -luci-app-falter-owm-gui
- -luci-app-olsr
- -luci-app-olsr-services
- -luci-mod-admin-full
- -luci-mod-falter
- -luci-proto-ipv6
- -luci-theme-bootstrap

- name: "Disable uhttpd on low mem"
set_fact:
Expand Down

0 comments on commit e5db932

Please sign in to comment.