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.yml
|
||||||
vars.yaml
|
vars.yaml
|
||||||
|
vars_kvm.yml
|
||||||
vars_libvirt.yml
|
vars_libvirt.yml
|
||||||
|
6
main.yml
6
main.yml
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user