From 8886b572b0768ca0b989c88fec5845007bce5809 Mon Sep 17 00:00:00 2001 From: DarkFeather Date: Mon, 12 Aug 2024 17:30:29 -0500 Subject: [PATCH] Rebuild Pacman keyring --- playbooks/rebuild-pacman-keyring.yml | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 playbooks/rebuild-pacman-keyring.yml diff --git a/playbooks/rebuild-pacman-keyring.yml b/playbooks/rebuild-pacman-keyring.yml new file mode 100644 index 0000000..60c4de9 --- /dev/null +++ b/playbooks/rebuild-pacman-keyring.yml @@ -0,0 +1,33 @@ +--- + + - hosts: "{{ targets | default('all') }}" + become: true + gather_facts: false + + tasks: + + - name: Clean + command: rm -Rf /etc/pacman.d/gnupg + + - name: Initialize keyring + command: /usr/bin/pacman-key --init + + - name: Add ArchLinux + command: /usr/bin/pacman-key --populate archlinux + + - name: Add AniNIX + command: /usr/bin/pacman-key --populate aninix + + - name: Locally sign AniNIX + command: /usr/bin/pacman-key --lsign 904DE6275579CB589D85720C1CC1E3F4ED06F296 + + - name: Update DB + command: /usr/bin/pacman-key --updatedb + + - name: Update packages + pacman: + name: + - archlinux-keyring + - ShadowArch + state: latest + update_cache: true