Skip to content

Instantly share code, notes, and snippets.

View servo56's full-sized avatar

Jason McMinn servo56

View GitHub Profile
@servo56
servo56 / gist:5608c55dbd418c4b9406c4263e5cfb31
Last active April 1, 2019 15:41
Format Drive for windows server D:
---
- name: Create a partition with drive letter D and size 1020 GiB
hosts: "{{host}}"
tasks:
win_partition:
drive_letter: D
partition_size: 1020 GiB
disk_number: 2
---
- name: Create a partition with drive letter D and size 1020 GiB
hosts: "{{host}}"
tasks:
- win_partition:
drive_letter: D
partition_size: 1020 GiB
disk_number: 2
# Description
# ===========
# Modified Azure Build for DC's by @vm_jmcminn jason.mcminn@shakerinternational.com and joe.harris@shakerinternational.com
# This playbook originally comes from @jborean93 (https://github.com/jborean93/ansible-win-demos)
#
- name: provision new azure host
hosts: localhost
---
- name: GpUpdate
hosts: "{{host}}"
tasks:
- win_command:
path: C:\Temp\gpupdate.bat
args:
chdir: C:\Temp\