diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-04-20 20:11:31 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-04-20 20:41:35 +0300 |
commit | b93845c3766d0afa3ab5052ddc5c644ae1652d4a (patch) | |
tree | 6cae2d249dd9f89d706c8a5e317d64ca9dbdc784 /base-image | |
parent | 4640aeaa7cec897a32302f4484054a4d6507b920 (diff) | |
download | ansibleness-b93845c3766d0afa3ab5052ddc5c644ae1652d4a.tar.gz |
perf: make base image smaller
Don't installed recommended packages, don't install locales-all, and
clean the apt cache.
Sponsored-by: author
drop locale-all, clean apt cache
Sponsored-by: author
Diffstat (limited to 'base-image')
-rw-r--r-- | base-image/base-image.yml | 4 | ||||
-rw-r--r-- | base-image/bullseye-vm.vmdb | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/base-image/base-image.yml b/base-image/base-image.yml index 5f72de6..44357d7 100644 --- a/base-image/base-image.yml +++ b/base-image/base-image.yml @@ -4,7 +4,9 @@ name: - cloud-init - openssh-server - - locales-all + install_recommends: no + - shell: | + apt clean vars: hostname: bullseye ansible_python_interpreter: /usr/bin/python3 diff --git a/base-image/bullseye-vm.vmdb b/base-image/bullseye-vm.vmdb index 9b1eda8..65db56c 100644 --- a/base-image/bullseye-vm.vmdb +++ b/base-image/bullseye-vm.vmdb @@ -28,6 +28,7 @@ steps: - apt: install packages: - linux-image-amd64 + recommends: false tag: / unless: rootfs_unpacked |