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

25
inv-chroot.yaml Normal file
View file

@ -0,0 +1,25 @@
---
target_system:
children:
chroot_target:
hosts:
void_chrooted:
ansible_host: /mnt/void
ansible_connection: community.general.chroot
ansible_chroot_exe: arch-chroot
hostsystem:
children:
local_host:
hosts:
arch_local:
ansible_host: 127.0.0.1
ansible_connection: ansible.builtin.local
# example separation of packages: GUIs and DEs in workstation, only terminal in headless
workstation:
children:
target_system: # mark this the current target system
headless:
children: