From 53e741152fbd1ec328adb7dedc8a7747f94c1e58 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 --- roles/cfg_openwrt/tasks/conditional_packages.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/roles/cfg_openwrt/tasks/conditional_packages.yml b/roles/cfg_openwrt/tasks/conditional_packages.yml index e14cff1bd..c1a4c1058 100644 --- a/roles/cfg_openwrt/tasks/conditional_packages.yml +++ b/roles/cfg_openwrt/tasks/conditional_packages.yml @@ -78,6 +78,22 @@ 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 + - -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: