fix(bootstrap): keep package cache off the 2 GiB CIS /var during install
This commit is contained in:
@@ -29,6 +29,21 @@
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
# Installers write their cache inside the installroot; redirect it off the 2 GiB CIS /var LV.
|
||||
- name: Create bootstrap package-cache directory
|
||||
ansible.builtin.file:
|
||||
path: /mnt/.bootstrap-cache
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- name: Redirect package cache off the CIS /var LV
|
||||
ansible.posix.mount:
|
||||
src: /mnt/.bootstrap-cache
|
||||
path: /mnt/var/cache
|
||||
fstype: none
|
||||
opts: bind
|
||||
state: ephemeral
|
||||
|
||||
- name: Run OS-specific bootstrap process
|
||||
vars:
|
||||
bootstrap_var_key: "{{ 'bootstrap_' + (os | replace('-lts', '') | replace('-', '_')) }}"
|
||||
|
||||
Reference in New Issue
Block a user