forked from jborean93/packer-windoze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
32 lines (29 loc) · 743 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
- name: setup new Vagrant box with the latest updates and config
hosts: windows
gather_facts: no
pre_tasks:
- name: fail if mandatory vars are not set
assert:
that:
- ansible_become_method == "runas"
- ansible_become_user is defined
- man_provider is defined
- man_host_type is defined
- man_host_architecture is defined
- man_is_longhorn is defined
- man_packer_windoze_version is defined
- man_skip_feature_removal is defined
- name: make sure the WinRM service is set to auto
win_service:
name: winrm
start_mode: auto
roles:
- update
- personalise
- openssh
#- cleanup-win10
- cleanup-winsxs
- cleanup-features
- cleanup
- sysprep