Files
hyperv-demo/playbooks/provision-vm.yml

26 lines
682 B
YAML

---
- 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