Revert "fix(edge-flash-wear): keep the pacman package cache empty"
The package cache is a disk-space concern of the package upgrades, not flash wear; it moves to the os-update role. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
# Managed by ansible (roles/edge-flash-wear).
|
||||
# The root filesystem is a ~7 GB eMMC; downloaded packages are not kept.
|
||||
[Trigger]
|
||||
Operation = Install
|
||||
Operation = Upgrade
|
||||
Operation = Remove
|
||||
Type = Package
|
||||
Target = *
|
||||
|
||||
[Action]
|
||||
Description = Removing downloaded packages from the cache...
|
||||
When = PostTransaction
|
||||
Exec = /usr/bin/find /var/cache/pacman/pkg -mindepth 1 -delete
|
||||
@@ -9,24 +9,6 @@
|
||||
name: mmc-utils # eMMC lifetime/EOL introspection (mmc extcsd read)
|
||||
state: present
|
||||
|
||||
- name: Ensure the pacman hook directory exists
|
||||
ansible.builtin.file:
|
||||
path: /etc/pacman.d/hooks
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- name: Empty the pacman package cache after every transaction
|
||||
ansible.builtin.copy:
|
||||
src: edge-pacman-cache.hook
|
||||
dest: /etc/pacman.d/hooks/edge-pacman-cache.hook
|
||||
mode: "0644"
|
||||
|
||||
- name: Empty the pacman package cache
|
||||
ansible.builtin.command:
|
||||
argv: [find, /var/cache/pacman/pkg, -mindepth, "1", -delete, -print]
|
||||
register: edge_pacman_cache_clean
|
||||
changed_when: edge_pacman_cache_clean.stdout | length > 0
|
||||
|
||||
- name: Ensure journald drop-in directory exists
|
||||
ansible.builtin.file:
|
||||
path: /etc/systemd/journald.conf.d
|
||||
|
||||
Reference in New Issue
Block a user