Skip to content

Commit

Permalink
move assertion list to main playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandwich committed Apr 15, 2024
1 parent 48b5f60 commit 6be464a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ inventory_libvirt.yml

vars.yml
vars.yaml
vars_kvm.yml
vars_libvirt.yml
6 changes: 3 additions & 3 deletions main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions vars_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6be464a

Please sign in to comment.