From efd2e2a075aeb44a2635c2d3363bee3445c36daf Mon Sep 17 00:00:00 2001 From: Beth Date: Thu, 20 Mar 2025 18:57:53 -0500 Subject: [PATCH] fix package cache on install and update packages --- tasks/main.yml | 2 ++ tasks/pacman.yml | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index dd6c60a..f03841e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -6,4 +6,6 @@ - include_tasks: pacman.yml when: ansible_facts['distribution'] == "Archlinux" +- include_tasks: packages.yml + - include_tasks: directories.yml diff --git a/tasks/pacman.yml b/tasks/pacman.yml index 399fa10..dd7d606 100644 --- a/tasks/pacman.yml +++ b/tasks/pacman.yml @@ -44,3 +44,8 @@ name: build_mirrorlist.timer state: started enabled: yes + +- name: refresh package cache and upgrade packages + community.general.pacman: + upgrade: true + update_cache: true \ No newline at end of file