No results
1
snippets
Luca Matteo Spoljarevic edited this page 2026-02-27 21:40:24 +01:00
Table of Contents
snippets (Arch Linux post-install)
Location: installation/Arch Linux/post-install/snippets/
Small, testable playbooks for Arch: package installation (pacman, AUR, Flatpak, Snap), adding repos (CachyOS, BlackArch), SSH keys, and git clone. Used to develop the full Arch post-install playbook.
Folders and playbooks
installation/
| File | Purpose |
|---|---|
| pacmanInstall.yml | Installs a large set of packages from vanilla Arch, plus CachyOS and BlackArch (assumes those repos are enabled). |
| AurInstaller.yml | Installs base-devel, git, go; creates aur_builder user; installs yay via makepkg; installs AUR packages (e.g. cmatrix-git, tofi, snapd). Requires kewlfft.aur. |
| flatpakInstall.yml | Installs Flatpak, adds Flathub, installs selected Flatpaks (e.g. Steam, Session). |
| snapInstall.yml | Installs snapd, enables snapd.socket, installs Snap packages (e.g. lunatask). |
repos/
| File | Purpose |
|---|---|
| addCachyosRepoToArch.yml | CachyOS GPG key, keyring/mirrorlist packages, repo block in pacman.conf. |
| addBlackarchRepo.yml | Installs curl and gnupg, downloads and runs BlackArch strap script, updates pacman DB. |
random/
| File | Purpose |
|---|---|
| sshkeys.yml | Installs python-cryptography and python-bcrypt; generates an ed25519 SSH keypair at ~/.ssh/codeberg with passphrase from ssh_key_passphrase (use a vault). |
| gitclone.yml | Creates dirs (e.g. ~/git/ls, ~/git/w2i) and clones a list of Codeberg repos via SSH. Note: May fail with permission issues when cloning via SSH; see main post-install README. |
Usage
- Inventory: Use
installation/Arch Linux/post-install/inventory.inior your own with anarch_vm(or matching) group. - AUR: Install the kewlfft.aur collection first (e.g. via
installation/ansibleCollections.yml). - SSH keys: Store
ssh_key_passphrasein a vault and run with--ask-vault-pass(or--vault-password-file).
Example:
ansible-playbook -i "installation/Arch Linux/post-install/inventory.ini" -b -K --ask-vault-pass "installation/Arch Linux/post-install/snippets/random/sshkeys.yml"
No guarantees; these are development snippets.