Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: 127.0.0.1
- debugger: on_failed
- connection: local
- gather_facts: no
- vars_prompt:
- - name: "vsphere_user"
- private: no
- prompt: "vSphere/ESXi user"
- - name: "vsphere_password"
- private: yes
- prompt: "vSphere/ESXi password"
- - name: "new_vm_name"
- prompt: "New VM Name"
- private: no
- - name: "guest_custom_ip"
- prompt: "IP Address"
- private: no
- - name: "notes"
- default: "Deployed by the PCL ESS Team"
- private: no
- prompt: "Notes"
- - name: new_forest_name
- prompt: New Domain Name
- private: no
- - name: safe_mode_password
- prompt: Please enter the new Safe Mode password
- private: yes
- - name: netbios_name
- prompt: New netbios name
- private: no
- tasks:
- - name: Create New VM
- import_role:
- name: new-vm
- vars:
- vsphere_user: vsphere_user
- vsphere_password: vsphere_password
- guest_custom_ip: guest_custom_ip
- - pause:
- minutes: 5
- - name: Install Active Directory with DNS Server
- import_role:
- name: install-ad-dns
- vars:
- vsphere_user: vsphere_user
- vsphere_password: vsphere_password
- new_vm_name: new_vm_name
- - pause:
- minutes: 5
- - name: Configure Active Directory with DNS Server
- import_role:
- name: configure-ad-dns
- vars:
- vsphere_user: vsphere_user
- vsphere_password: vsphere_password
- new_vm_name: new_vm_name
- new_forest_name: new_forest_name
- safe_mode_password: safe_mode_password
- netbios_name: netbios_name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement