{% if unattend.administrator_password is defined %}
{{ unattend.administrator_password }}
true
{% endif %}
{% if unattend.local_accounts is defined %}
{% for local_account in unattend.local_accounts %}
{% if local_account.password is defined %}
{{ local_account.password }}
true
{% endif %}
{% if local_account.description is defined %}
{{ local_account.description }}
{% endif %}
{% if local_account.display_name is defined %}
{{ local_account.display_name }}
{% endif %}
{% if local_account.group is defined %}
{{ local_account.group }}
{% endif %}
{% if local_account.name is defined %}
{{ local_account.name }}
{% endif %}
{% endfor %}
{% endif %}
true
true
Home
1
{% if not 'Windows Server 2008' in ansible_distribution and not 'Windows 7' in ansible_distribution %}
true
true
true
{% endif %}
true
true
{% if enable_auto_logon and unattend.local_accounts and unattend.local_accounts[0].name and unattend.local_accounts[0].password %}
{{ unattend.local_accounts[0].password }}
true
{{ unattend.local_accounts[0].name }}
true
{% endif %}
{% if not 'Windows Server 2008' in ansible_distribution and not 'Windows 7' in ansible_distribution %}
cmd.exe /c powershell -Command "Resize-Partition -DriveLetter C -Size (Get-PartitionSupportedSize -DriveLetter C).Sizemax -ErrorAction SilentlyContinue"
Resize partition
1
true
cmd.exe /c powershell -Command "Set-NetConnectionProfile -NetworkCategory Private"
Set network connection profile to private
2
true
{% else %}
cmd.exe /c powershell –Command "{{ expand_disk }}"
Resize partition
1
true
cmd.exe /c powershell –Command "{{ set_network_to_private }}"
Set network connection profile to private
2
true
{% endif %}
cmd.exe /c powershell -Command "{{ enable_winrm_command }}"
Enable winrm
3
true
cmd.exe /c powershell -Command "Enable-WSManCredSSP -Role Server -Force"
Enable winrm server role
4
true
cmd.exe /c powershell -Command "Set-Item -Path 'WSMan:\localhost\Service\Auth\CredSSP' -Value $true"
Enable credssp authentication
5
true
false
false
{{ settings.computer_name | default('windows') }}
{{ settings.time_zone | default('Central Standard Time') }}
{{ settings.skip_auto_activation | default('true') }}