ref(inventory): Split up inventory into group vars

One inventory targets a local machine (`inv-local.yaml`, chosen by default)
while the other targets a chrooted installation accessible from another
system, usually in the `/mnt/void` directory (`inv-chroot.yaml`, has to
be called like `ansible-playbook -i inv-chroot.yaml`).
This commit is contained in:
Marty Oehme 2025-03-02 08:49:48 +01:00
parent 19162e2af3
commit 030b8ec291
Signed by: Marty
GPG key ID: 4E535BC19C61886E
12 changed files with 399 additions and 265 deletions

11
group_vars/all/vars.yaml Normal file
View file

@ -0,0 +1,11 @@
---
restic_repository: "{{ vault_restic_repository }}"
restic_password: "{{ vault_restic_password }}"
restic_s3_id: "{{ vault_restic_s3_id }}"
restic_s3_key: "{{ vault_restic_s3_key }}"
desired_package_state: latest
user_name: "{{ vault_user_name }}"
user_pass: "{{ vault_user_pass }}"
user_pass_salt: "{{ vault_user_pass_salt }}"
user_shell: zsh

22
group_vars/all/vault.yaml Normal file
View file

@ -0,0 +1,22 @@
$ANSIBLE_VAULT;1.1;AES256
38303561343934626363616162303635316437313931306262313733316433373335663336343433
3963333661613634366462666366326338346538393237310a663635373838356637303464383262
30313034333137313466393963373237336461316530386365383530613533616461396164393937
6135316435636638630a363864303133353137633066336138616133316164346530623035303433
34316338363065666463363162663334333762353832373834666366346639646438663936303231
34646435336335393039343130666338663762643535343139396638306164666566653632336432
30373232626333363530343433326364353061663239623236666436373839383137363536623236
66306330333636303166383737653435636537353630356634353161303834646438316330393061
61323366333530356235663763366361353538613764353561623934366237356363323834393535
66383765636233353831346434323139303562323030616637653136383536363130346662393139
37623439646535653061383963303465653739626331383861616235363564663961323964663938
31666339363166353532336239393735623337376162363633373062653261663936666535383833
38376330636536376631613134323439383465666439643930386335346533383434386637383765
37383033373235653765623531626531623035636665616162653865386361343465656638303664
66326164663631353035383636383536323032666263303636613065656564653766363162623063
35336131373238373135633738363030636665336631653039393561626436623166326434643638
63383230613364333736356434626330373861353635333463343365666162373038643965383361
66356463663161303861366363363066623862623733333131636535333865623035363738383134
36643937383731626366383432366632366332393066356561643363313435653236313139646365
65313061626361663431326236346131346561646439353036316532613562343166343738616331
3834

19
group_vars/desktop.yaml Normal file
View file

@ -0,0 +1,19 @@
fonts:
- nerd-fonts-otf
- noto-fonts-ttf
- noto-fonts-cjk
- noto-fonts-emoji
packages_de:
- bemenu
- pinentry-bemenu
- clipman
- grim
- kanshi
- mako
- slurp
- waylock
packages_gui:
- gimp
- qutebrowser
- sioyek
- wdisplays

63
group_vars/headless.yaml Normal file
View file

@ -0,0 +1,63 @@
packages_terminal:
- abduco
- ansible # FIXME: not in other inventory, see how to deduplicate to keep DRY
- atuin
- autofs
- bat
- bc
- bottom
- brightnessctl
- chafa
- docker
- docker-compose
- docx2txt
- duf
- dust
- entr
- eza
- fd
- flavours # TODO: To be replaced with tinty
- fwupd
- gallery-dl
- git-lfs
- htop
- iftop
- jrnl
- khal
- khard
- moreutils
- msmtp
- neomutt
- neovim
- newsboat
- nushell
- papis
- pass
- pdftk
- podman
- restic
- ripgrep
- sc-im
- snooze
- starship
- swaybg
- swayidle
- task
- tasksh
- tectonic
- thermald
- timewarrior
- topgrade
- uv
- vdirsyncer
- vifm
- visidata
- wezterm
- wlopm
- wlsunset
- wtype
- yt-dlp
- zk
- zoxide
- zr # zsh plugin manager
- zsh