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`).
25 lines
572 B
YAML
25 lines
572 B
YAML
---
|
|
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:
|