feat(inventory): Change to yaml definition
This commit is contained in:
parent
79a30d2adb
commit
b3c5347143
5 changed files with 17 additions and 7 deletions
|
@ -1,2 +1,2 @@
|
|||
[defaults]
|
||||
inventory=inventory
|
||||
inventory=inventory.yaml
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
# - { fstype: 'vfat', src: '/dev/disk/by-uuid/{{ boot_dev_uuid }}', path: '{{ mount_dir }}/boot' }
|
||||
|
||||
- name: Create voidlinux guest
|
||||
hosts: host
|
||||
hosts: hostsystem
|
||||
become: true
|
||||
vars:
|
||||
mount_dir: /mnt/void
|
||||
|
|
|
@ -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
14
inventory.yaml
Normal 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:
|
|
@ -1,6 +1,7 @@
|
|||
- name: Install void customizations
|
||||
hosts: void
|
||||
become: true
|
||||
tags: interface
|
||||
vars:
|
||||
ansible_chroot_exe: arch-chroot
|
||||
tasks:
|
||||
|
|
Loading…
Reference in a new issue