From 3d733195d6227deb8e61f968027904b401725844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Fri, 10 Oct 2025 13:41:33 +0200 Subject: [PATCH] Make sure pacman database exists on install --- playbook.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/playbook.yml b/playbook.yml index 03544e8..d56594f 100644 --- a/playbook.yml +++ b/playbook.yml @@ -42,8 +42,13 @@ [multilib] Include = /etc/pacman.d/mirrorlist marker: "# {mark} ANSIBLE MANAGED multilib" + notify: + - refresh package lists become: true + - name: Make sure that package lists are refreshed if necessary + ansible.builtin.meta: flush_handlers + - name: Enable parallel download ansible.builtin.blockinfile: path: /etc/pacman.conf @@ -812,6 +817,11 @@ - always handlers: + - name: refresh package lists + community.general.pacman: + update_cache: true + become: true + - name: rebuild initrd command: mkinitcpio -P become: true