feat(inventory): Change to yaml definition

This commit is contained in:
Marty Oehme 2025-02-22 17:11:58 +01:00
parent 79a30d2adb
commit b3c5347143
Signed by: Marty
GPG key ID: 4E535BC19C61886E
5 changed files with 17 additions and 7 deletions

View file

@ -1,2 +1,2 @@
[defaults] [defaults]
inventory=inventory inventory=inventory.yaml

View file

@ -28,7 +28,7 @@
# - { fstype: 'vfat', src: '/dev/disk/by-uuid/{{ boot_dev_uuid }}', path: '{{ mount_dir }}/boot' } # - { fstype: 'vfat', src: '/dev/disk/by-uuid/{{ boot_dev_uuid }}', path: '{{ mount_dir }}/boot' }
- name: Create voidlinux guest - name: Create voidlinux guest
hosts: host hosts: hostsystem
become: true become: true
vars: vars:
mount_dir: /mnt/void mount_dir: /mnt/void

View file

@ -1,5 +0,0 @@
[host]
127.0.0.1 ansible_connection=local
[chroot]
/mnt/void ansible_connection=community.general.chroot

14
inventory.yaml Normal file
View file

@ -0,0 +1,14 @@
hostsystem:
hosts:
127.0.0.1:
ansible_connection: local
chroot:
hosts:
void:
ansible_host: /mnt/void
ansible_connection: community.general.chroot
interface:
hosts:
void:

View file

@ -1,6 +1,7 @@
- name: Install void customizations - name: Install void customizations
hosts: void hosts: void
become: true become: true
tags: interface
vars: vars:
ansible_chroot_exe: arch-chroot ansible_chroot_exe: arch-chroot
tasks: tasks: