From 38a4425d9468868b22064dc967b2da283f7980a0 Mon Sep 17 00:00:00 2001
From: Marty Oehme <marty.oehme@gmail.com>
Date: Sun, 23 Feb 2025 10:45:07 +0100
Subject: [PATCH] fix(inventory): Correctly assign groups to keep vars

If assigning a list of 'host's to a group those become actual hosts and
have their own host variables. What we want to use groups with
child/parent relationships to group things is to not directly use hosts.
---
 inventory.yaml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/inventory.yaml b/inventory.yaml
index 14c7e18..f01fe28 100644
--- a/inventory.yaml
+++ b/inventory.yaml
@@ -5,24 +5,24 @@ hostsystem:
 
 chroot_target:
   hosts:
-    void:
+    void_chrooted:
       ansible_host: /mnt/void
       ansible_connection: community.general.chroot
       ansible_chroot_exe: arch-chroot
-      desired_package_state: latest
 
 local_target:
   hosts:
-    void:
+    void_local:
       ansible_host: 127.0.0.1
-      desired_package_state: latest
 
 target_system:
   children:
     chroot_target:
+  vars:
+    desired_package_state: latest
 
 interface:
-  hosts:
+  children:
     target_system:
   vars:
     fonts:
@@ -46,7 +46,7 @@ interface:
       - wdisplays
 
 terminal:
-  hosts:
+  children:
     target_system:
   vars:
     packages_terminal: