Added ability to join Windows Domain

This commit is contained in:
2016-09-08 10:58:21 +12:00
parent 6ffcdc9fac
commit 4534664c2a

View File

@@ -15,4 +15,13 @@
- name: Ensure DNS is set
win_dns:
dns1: "{{ dns_servers[0] }}"
dns2: "{{ dns_servers[1] }}"
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
- meta: flush_handlers