summaryrefslogtreecommitdiff
path: root/ansible/roles/websql01/tasks/join_domain.yaml
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-07-14 11:54:51 +0300
committerheqnx <root@heqnx.com>2025-07-14 11:54:51 +0300
commitb1ca188b8a16a49b79cd18ae39261fe9c666edf1 (patch)
tree2c1ec57694b79332c3017bf73b47521632a9602b /ansible/roles/websql01/tasks/join_domain.yaml
parent21de19d2573b802d93cd0a9af739ca2937e28b66 (diff)
downloadansible-active-directory-range-b1ca188b8a16a49b79cd18ae39261fe9c666edf1.tar.gz
ansible-active-directory-range-b1ca188b8a16a49b79cd18ae39261fe9c666edf1.zip
working iis + mssql setup
Diffstat (limited to 'ansible/roles/websql01/tasks/join_domain.yaml')
-rw-r--r--ansible/roles/websql01/tasks/join_domain.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/ansible/roles/websql01/tasks/join_domain.yaml b/ansible/roles/websql01/tasks/join_domain.yaml
new file mode 100644
index 0000000..6736ba2
--- /dev/null
+++ b/ansible/roles/websql01/tasks/join_domain.yaml
@@ -0,0 +1,13 @@
+- name: join domain
+ ansible.windows.win_domain_membership:
+ dns_domain_name: "{{ main_domain_name }}"
+ domain_admin_user: "{{ main_domain_name }}\\Administrator"
+ domain_admin_password: "{{ default_win_password }}"
+ state: domain
+ register: domain_state
+
+- name: reboot
+ win_reboot:
+ reboot_timeout: 3600
+ when: domain_state.reboot_required
+