From d361ef054db37c2c8b8dc1be33c07d8739f5fafd Mon Sep 17 00:00:00 2001 From: Beth Date: Thu, 20 Mar 2025 21:59:30 -0500 Subject: [PATCH] Update package cache and packages during install (#3) Reviewed-on: https://git.actcur.com/actcur-ansible/role-core/pulls/3 Co-authored-by: Beth Co-committed-by: Beth --- 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