Initial hyper-v demo skeleton
This commit is contained in:
25
playbooks/provision-vm.yml
Normal file
25
playbooks/provision-vm.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
- name: Provision Windows Server VM on Hyper-V
|
||||
hosts: hyperv_hosts
|
||||
gather_facts: false
|
||||
|
||||
vars_prompt:
|
||||
- name: vm_name
|
||||
prompt: "Enter VM name"
|
||||
private: false
|
||||
|
||||
- name: vm_ip_address
|
||||
prompt: "Enter IP address for VM"
|
||||
private: false
|
||||
|
||||
tasks:
|
||||
- name: Placeholder - Create VM
|
||||
ansible.builtin.debug:
|
||||
msg: "Will create VM {{ vm_name }} with IP {{ vm_ip_address }}"
|
||||
|
||||
# TODO: Implement VM creation using hyper-v modules
|
||||
# TODO: Generate autounattend.xml from template
|
||||
# TODO: Attach autounattend.xml to VM
|
||||
# TODO: Start VM and wait for provisioning
|
||||
# TODO: Add VM to inventory
|
||||
# TODO: Update ServiceNow CMDB
|
||||
Reference in New Issue
Block a user