From d34a9b35becccee4d2780cbb376857a2c1209489 Mon Sep 17 00:00:00 2001 From: Tobias Schwarz Date: Fri, 20 Dec 2024 06:18:59 +0000 Subject: [PATCH] roles: remove all luci/uhttp packagages on low_mem / low_flash --- .../cfg_openwrt/tasks/conditional_packages.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/roles/cfg_openwrt/tasks/conditional_packages.yml b/roles/cfg_openwrt/tasks/conditional_packages.yml index e14cff1bd..9e4300fbf 100644 --- a/roles/cfg_openwrt/tasks/conditional_packages.yml +++ b/roles/cfg_openwrt/tasks/conditional_packages.yml @@ -78,6 +78,24 @@ 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-olsr + - -luci-app-olsr-services + - -luci-mod-falter + - -falter-common + - -luci-app-falter-owm + - -luci-app-falter-owm-ant + - -luci-app-falter-owm-cmd + - -luci-app-falter-owm-gui + - -luci-mod-admin-full + - -luci-proto-ipv6 + - -luci-theme-bootstrap + - -uhttpd + - -uhttpd-mod-ubus - name: "Disable uhttpd on low mem" set_fact: