Move hypervisor and disk variable from main playbook

This commit is contained in:
Sandwich 2024-10-30 16:58:22 +01:00
parent ee6e06a3fe
commit 04d05a4e8b
2 changed files with 5 additions and 16 deletions

View File

@ -1,4 +1,7 @@
all: all:
vars:
hypervisor: 'proxmox'
install_drive: '/dev/sda'
children: children:
promox-kvm: promox-kvm:
hosts: hosts:

View File

@ -19,24 +19,10 @@
prompt: | prompt: |
What is your root password? What is your root password?
confirm: true confirm: true
- name: hypervisor
prompt: |
Select an Hypervisor:
- libvirt
- proxmox
- vmware
private: false
default: proxmox
- name: install_drive
prompt: |
"Enter the drive to install the system (default: /dev/sda)"
confirm: true
private: false
default: /dev/sda
vars_files: vars.yml vars_files: vars.yml
vars: vars:
hypervisor: "{{ hypervisor }} | default('vmware')"
install_drive: "{{ install_drive }} | default('/dev/sda')"
ansible_user: "{{ user_name }}" ansible_user: "{{ user_name }}"
ansible_password: "{{ user_password }}" ansible_password: "{{ user_password }}"
ansible_become_password: "{{ user_password }}" ansible_become_password: "{{ user_password }}"