move assertion list to main playbook
This commit is contained in:
parent
48b5f602fa
commit
6be464a0e2
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,4 +4,5 @@ inventory_libvirt.yml
|
||||
|
||||
vars.yml
|
||||
vars.yaml
|
||||
vars_kvm.yml
|
||||
vars_libvirt.yml
|
||||
|
6
main.yml
6
main.yml
@ -45,9 +45,9 @@
|
||||
- name: Validate variables
|
||||
assert:
|
||||
that:
|
||||
- hypervisor in hypervisor_list
|
||||
- filesystem in filesystem_list
|
||||
- os in os_list
|
||||
- hypervisor in ["libvirt", "proxmox", "vmware", "none"]
|
||||
- filesystem in ["btrfs", "ext4", "xfs"]
|
||||
- os in ["archlinux", "almalinux", "debian11", "debian12", "fedora"]
|
||||
fail_msg: "Invalid input specified, please try again"
|
||||
|
||||
- name: Set connection
|
||||
|
@ -4,9 +4,6 @@ ansible_become_password: "{{ user_password }}"
|
||||
ansible_ssh_extra_args: '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
|
||||
|
||||
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"
|
||||
cis: false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user