move assertion list to main playbook

This commit is contained in:
Sandwich 2024-04-15 21:23:32 +02:00
parent 48b5f602fa
commit 6be464a0e2
3 changed files with 4 additions and 6 deletions

1
.gitignore vendored
View File

@ -4,4 +4,5 @@ inventory_libvirt.yml
vars.yml vars.yml
vars.yaml vars.yaml
vars_kvm.yml
vars_libvirt.yml vars_libvirt.yml

View File

@ -45,9 +45,9 @@
- name: Validate variables - name: Validate variables
assert: assert:
that: that:
- hypervisor in hypervisor_list - hypervisor in ["libvirt", "proxmox", "vmware", "none"]
- filesystem in filesystem_list - filesystem in ["btrfs", "ext4", "xfs"]
- os in os_list - os in ["archlinux", "almalinux", "debian11", "debian12", "fedora"]
fail_msg: "Invalid input specified, please try again" fail_msg: "Invalid input specified, please try again"
- name: Set connection - name: Set connection

View File

@ -4,9 +4,6 @@ ansible_become_password: "{{ user_password }}"
ansible_ssh_extra_args: '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' ansible_ssh_extra_args: '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
vm_ip: "{{ inventory_hostname }}/24" vm_ip: "{{ inventory_hostname }}/24"
hypervisor_list: ["libvirt", "proxmox", "vmware", "none"]
filesystem_list: ["btrfs", "ext4", "xfs"]
os_list: ["archlinux", "almalinux", "debian11", "debian12", "fedora"]
install_type: "virtual" install_type: "virtual"
cis: false cis: false