You've already forked ansible-role-common
Added ability to join Windows Domain
This commit is contained in:
@@ -15,4 +15,13 @@
|
|||||||
- name: Ensure DNS is set
|
- name: Ensure DNS is set
|
||||||
win_dns:
|
win_dns:
|
||||||
dns1: "{{ dns_servers[0] }}"
|
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
|
||||||
Reference in New Issue
Block a user