Move hypervisor and disk variable from main playbook
This commit is contained in:
parent
ee6e06a3fe
commit
04d05a4e8b
@ -1,4 +1,7 @@
|
|||||||
all:
|
all:
|
||||||
|
vars:
|
||||||
|
hypervisor: 'proxmox'
|
||||||
|
install_drive: '/dev/sda'
|
||||||
children:
|
children:
|
||||||
promox-kvm:
|
promox-kvm:
|
||||||
hosts:
|
hosts:
|
||||||
|
18
main.yml
18
main.yml
@ -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 }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user