Skip to content

Commit dcc0369

Browse files
authored
Merge pull request #459 from ripleymj/space-savings
Space savings
2 parents c25e434 + 044f1cd commit dcc0369

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

roles/oem/tasks/ubuntu_only.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@
66
upgrade: safe
77
- name: Upgrade all installed snaps # noqa no-changed-when
88
command: snap refresh
9+
- name: Purge old snaps
10+
shell: |
11+
set -o pipefail
12+
errors=0
13+
changed=""
14+
while read snapname revision; do
15+
snap remove "$snapname" --revision="$revision"
16+
errors=$((errors + $?))
17+
changed="Snap removed"
18+
done <<< "$(snap list --all | awk '/disabled/{print $1, $3}')"
19+
echo $changed
20+
exit $errors
21+
args:
22+
executable: /bin/bash
23+
register: snapout
24+
changed_when: '"Snap removed" in snapout.stdout'
925
- name: Copy dconf config file
1026
copy:
1127
src: csconfig-ubuntuonly

roles/oem/vars/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ packages_to_remove:
4141
- fonts-tibetan-machine
4242
- fonts-tlwg-*
4343
- fonts-wqy-microhei
44+
- fonts-yrsa-rasa
4445
- hexchat*
4546
- hunspell-de-*
4647
- hunspell-en-au
@@ -60,7 +61,6 @@ packages_to_remove:
6061
- hyphen-pt*
6162
- hyphen-ru
6263
- libreoffice*
63-
- linux*oem
6464
- mint-artwork-mate
6565
- mint-backgrounds-sarah
6666
- mint-backgrounds-serena
@@ -79,6 +79,7 @@ packages_to_remove:
7979
- mythes-it
8080
- mythes-pt-pt
8181
- mythes-ru
82+
- openjdk*
8283
- openvpn
8384
- pidgin*
8485
- pix*
@@ -89,5 +90,7 @@ packages_to_remove:
8990
- tomboy
9091
- transmission*
9192
- vlc*
93+
- wbrazilian
9294
- wbritish
95+
- wfrench
9396
- xscreensaver-*

0 commit comments

Comments
 (0)