Skip to content

Commit e5db932

Browse files
committed
roles: remove more packages on low_mem / low_flash
1 parent add49f4 commit e5db932

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

roles/cfg_openwrt/tasks/conditional_packages.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,35 @@
7272
- tcpdump-mini
7373
- -vnstat
7474

75+
- name: "Remove even more packages for corerouter with low mem and low flash"
76+
set_fact:
77+
packages: "{{ packages + [item] }}"
78+
when:
79+
- role == 'corerouter'
80+
- low_mem | default(false) or low_flash | default(false)
81+
loop:
82+
- -tcpdump-mini
83+
- -mtr
84+
7585
- name: "Remove Luci on low mem and low flash"
7686
set_fact:
7787
packages: "{{ packages + ['-' + item] }}"
7888
when: (low_mem | default(false) or low_flash | default(false)) and role != "corerouter"
7989
loop: "{{ all_luci_base__packages__to_merge }}"
8090

91+
- name: "Remove Luci packages on low mem and low flash not removed by the above"
92+
set_fact:
93+
packages: "{{ packages + [item] }}"
94+
when: low_mem | default(false) or low_flash | default(false)
95+
loop:
96+
- -luci-app-falter-owm-ant
97+
- -luci-app-falter-owm-gui
98+
- -luci-app-olsr
99+
- -luci-app-olsr-services
100+
- -luci-mod-admin-full
101+
- -luci-mod-falter
102+
- -luci-proto-ipv6
103+
- -luci-theme-bootstrap
81104

82105
- name: "Disable uhttpd on low mem"
83106
set_fact:

0 commit comments

Comments
 (0)