diff --git a/ansible/roles/edge-flash-wear/files/edge-pacman-cache.hook b/ansible/roles/edge-flash-wear/files/edge-pacman-cache.hook deleted file mode 100644 index 8a18e3ae..00000000 --- a/ansible/roles/edge-flash-wear/files/edge-pacman-cache.hook +++ /dev/null @@ -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 diff --git a/ansible/roles/edge-flash-wear/tasks/main.yml b/ansible/roles/edge-flash-wear/tasks/main.yml index 51d0d7ba..96eed5d9 100644 --- a/ansible/roles/edge-flash-wear/tasks/main.yml +++ b/ansible/roles/edge-flash-wear/tasks/main.yml @@ -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