Page:
snippets repos
No results
1
snippets repos
Luca Matteo Spoljarevic edited this page 2026-02-27 21:40:24 +01:00
snippets/repos (Arch Linux post-install)
Location: installation/Arch Linux/post-install/snippets/repos/
Playbooks that add third-party repositories to Arch Linux: CachyOS and BlackArch.
addCachyosRepoToArch.yml
- Imports the CachyOS GPG key from a keyserver.
- Locally signs the key.
- Installs CachyOS keyring and mirrorlist packages from the CachyOS mirror URLs (defined in vars).
- Appends the CachyOS repo block to
/etc/pacman.conf(with an Ansible marker).
Does not refresh the pacman database in this snippet (unlike the top-level addCachyosRepoToArch.yml in installation/). Run a pacman sync afterward if needed.
Run:
ansible-playbook -i inventory.ini "installation/Arch Linux/post-install/snippets/repos/addCachyosRepoToArch.yml" -K
addBlackarchRepo.yml
- Installs curl and gnupg.
- Downloads the BlackArch strap script from blackarch.org.
- Runs the strap script (idempotent: uses
creates: /etc/pacman.d/blackarch-mirrorlist). - Updates the pacman database.
Run:
ansible-playbook -i inventory.ini "installation/Arch Linux/post-install/snippets/repos/addBlackarchRepo.yml" -K
Order
If you use both: add CachyOS or BlackArch (or both) before running pacmanInstall snippets that install packages from those repos.