diff --git a/README.md b/README.md index 25bfe78..e371961 100644 --- a/README.md +++ b/README.md @@ -191,7 +191,7 @@ ansible-playbook -i inventory.yml -e @vars.yml main.yml This command prompts Ansible to execute the `main.yml` playbook, applying configurations defined in both `vars.yml` and the inventory file. -Use `inventory_example.yml`, `vars_example.yml`, and the bare-metal examples as starting points for new inventories. +Use `inventory_example.yml`, `inventory_libvirt_example.yml`, `vars_example.yml`, and the bare-metal examples as starting points for new inventories. ## Notes diff --git a/inventory_libvirt_example.yml b/inventory_libvirt_example.yml new file mode 100644 index 0000000..72e31e0 --- /dev/null +++ b/inventory_libvirt_example.yml @@ -0,0 +1,185 @@ +--- +all: + vars: + hypervisor: "libvirt" + install_type: "virtual" + install_drive: "/dev/vda" + boot_iso: "/var/lib/libvirt/images/archlinux-x86_64.iso" + rhel_iso: "/var/lib/libvirt/images/rhel-9.4-x86_64-dvd.iso" + vm_cpus: 2 + vm_memory: 4096 + vm_size: 30 + vm_nms: 24 + vm_gw: 192.168.122.1 + vm_dns: 1.1.1.1 + children: + libvirt: + hosts: + archlinux-luks: + ansible_host: 192.168.122.100 + hostname: "archlinux-luks" + os: "archlinux" + filesystem: "btrfs" + vm_ip: 192.168.122.100 + luks_enabled: true + archlinux-plain: + ansible_host: 192.168.122.101 + hostname: "archlinux-plain" + os: "archlinux" + filesystem: "ext4" + vm_ip: 192.168.122.101 + luks_enabled: false + almalinux-luks: + ansible_host: 192.168.122.102 + hostname: "almalinux-luks" + os: "almalinux" + filesystem: "xfs" + vm_ip: 192.168.122.102 + luks_enabled: true + almalinux-plain: + ansible_host: 192.168.122.103 + hostname: "almalinux-plain" + os: "almalinux" + filesystem: "ext4" + vm_ip: 192.168.122.103 + luks_enabled: false + debian11-luks: + ansible_host: 192.168.122.104 + hostname: "debian11-luks" + os: "debian11" + filesystem: "ext4" + vm_ip: 192.168.122.104 + luks_enabled: true + debian11-plain: + ansible_host: 192.168.122.105 + hostname: "debian11-plain" + os: "debian11" + filesystem: "xfs" + vm_ip: 192.168.122.105 + luks_enabled: false + debian12-luks: + ansible_host: 192.168.122.106 + hostname: "debian12-luks" + os: "debian12" + filesystem: "btrfs" + vm_ip: 192.168.122.106 + luks_enabled: true + debian12-plain: + ansible_host: 192.168.122.107 + hostname: "debian12-plain" + os: "debian12" + filesystem: "ext4" + vm_ip: 192.168.122.107 + luks_enabled: false + debian13-luks: + ansible_host: 192.168.122.108 + hostname: "debian13-luks" + os: "debian13" + filesystem: "btrfs" + vm_ip: 192.168.122.108 + luks_enabled: true + debian13-plain: + ansible_host: 192.168.122.109 + hostname: "debian13-plain" + os: "debian13" + filesystem: "xfs" + vm_ip: 192.168.122.109 + luks_enabled: false + fedora-luks: + ansible_host: 192.168.122.110 + hostname: "fedora-luks" + os: "fedora" + filesystem: "btrfs" + vm_ip: 192.168.122.110 + luks_enabled: true + fedora-plain: + ansible_host: 192.168.122.111 + hostname: "fedora-plain" + os: "fedora" + filesystem: "xfs" + vm_ip: 192.168.122.111 + luks_enabled: false + rhel8-luks: + ansible_host: 192.168.122.112 + hostname: "rhel8-luks" + os: "rhel8" + filesystem: "ext4" + vm_ip: 192.168.122.112 + luks_enabled: true + rhel8-plain: + ansible_host: 192.168.122.113 + hostname: "rhel8-plain" + os: "rhel8" + filesystem: "ext4" + vm_ip: 192.168.122.113 + luks_enabled: false + rhel9-luks: + ansible_host: 192.168.122.114 + hostname: "rhel9-luks" + os: "rhel9" + filesystem: "xfs" + vm_ip: 192.168.122.114 + luks_enabled: true + rhel9-plain: + ansible_host: 192.168.122.115 + hostname: "rhel9-plain" + os: "rhel9" + filesystem: "ext4" + vm_ip: 192.168.122.115 + luks_enabled: false + rhel10-luks: + ansible_host: 192.168.122.116 + hostname: "rhel10-luks" + os: "rhel10" + filesystem: "xfs" + vm_ip: 192.168.122.116 + luks_enabled: true + rhel10-plain: + ansible_host: 192.168.122.117 + hostname: "rhel10-plain" + os: "rhel10" + filesystem: "ext4" + vm_ip: 192.168.122.117 + luks_enabled: false + rocky-luks: + ansible_host: 192.168.122.118 + hostname: "rocky-luks" + os: "rocky" + filesystem: "xfs" + vm_ip: 192.168.122.118 + luks_enabled: true + rocky-plain: + ansible_host: 192.168.122.119 + hostname: "rocky-plain" + os: "rocky" + filesystem: "ext4" + vm_ip: 192.168.122.119 + luks_enabled: false + ubuntu-luks: + ansible_host: 192.168.122.120 + hostname: "ubuntu-luks" + os: "ubuntu" + filesystem: "btrfs" + vm_ip: 192.168.122.120 + luks_enabled: true + ubuntu-plain: + ansible_host: 192.168.122.121 + hostname: "ubuntu-plain" + os: "ubuntu" + filesystem: "ext4" + vm_ip: 192.168.122.121 + luks_enabled: false + ubuntu-lts-luks: + ansible_host: 192.168.122.122 + hostname: "ubuntu-lts-luks" + os: "ubuntu-lts" + filesystem: "btrfs" + vm_ip: 192.168.122.122 + luks_enabled: true + ubuntu-lts-plain: + ansible_host: 192.168.122.123 + hostname: "ubuntu-lts-plain" + os: "ubuntu-lts" + filesystem: "ext4" + vm_ip: 192.168.122.123 + luks_enabled: false