From d6d546aba9eddb847725a12cc42879c9ae49002d Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 12 Jan 2023 20:13:24 +0000 Subject: [PATCH] Install chaotic aur mirrorlist before pacman conf Otherwise the pacman conf is invalid --- tasks/packages.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tasks/packages.yml b/tasks/packages.yml index c2a7cf4..6f5ac46 100644 --- a/tasks/packages.yml +++ b/tasks/packages.yml @@ -16,6 +16,14 @@ - 3056513887B78AEB # chaotic-AUR when: item not in repo_keys.stdout +- name: Install chaotic AUR + pacman: + name: "{{ item }}" + become: true + loop: + - https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst + - https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst + - name: Install pacman config template: src: ./files/pacman.conf @@ -40,14 +48,6 @@ mode: 0640 changed_when: false -- name: Install chaotic AUR - pacman: - name: "{{ item }}" - become: true - loop: - - https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst - - https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst - - name: Update package repositories pacman: update_cache: true