Files
ansible-role-common/tasks/Windows.yml

31 lines
733 B
YAML
Raw Normal View History

2016-11-15 00:01:06 +13:00
---
- name: Set Timezone
win_timezone:
timezone: "New Zealand Standard Time"
2016-07-26 14:30:49 +12:00
- name: Ensure Administrator password
win_user:
name: administrator
password: "{{ vault_windows_admin_pwd }}"
password_never_expires: yes
state: present
update_password: always
changed_when: false
2016-11-15 00:01:06 +13:00
- name: Ensure System Culture Set
2016-11-22 11:59:24 +13:00
win_locale:
culture: en-NZ
- name: Ensure DNS is set
win_dns:
dns1: "{{ dns_servers[0] }}"
2016-09-08 10:58:21 +12:00
dns2: "{{ dns_servers[1] }}"
- name: Ensure domain is joined
win_ad_domain:
admin_user: "{{ ad_admin_username }}"
admin_password: "{{ ad_admin_password }}"
domain_name: "{{ ad_domain_name }}"
when: ad_domain_joined
notify: reboot windows
2016-11-15 00:01:06 +13:00
- meta: flush_handlers