Rebuild Pacman keyring
This commit is contained in:
parent
a17e2c6fe9
commit
8886b572b0
33
playbooks/rebuild-pacman-keyring.yml
Normal file
33
playbooks/rebuild-pacman-keyring.yml
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user