summaryrefslogtreecommitdiff
path: root/ansible/roles/dc03/tasks/set_hostname.yaml
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-07-17 18:08:37 +0300
committerheqnx <root@heqnx.com>2025-07-17 18:08:37 +0300
commitcbd285087e710a265bdddfb4521a39a57bc8702c (patch)
treef95919e8eba622b8a517ffa20a6880bd88cc5e03 /ansible/roles/dc03/tasks/set_hostname.yaml
parent156f392cd059a4f0de0b8ba2443eb2eeb1e1c41a (diff)
downloadansible-active-directory-range-cbd285087e710a265bdddfb4521a39a57bc8702c.tar.gz
ansible-active-directory-range-cbd285087e710a265bdddfb4521a39a57bc8702c.zip
added tree and child domain
Diffstat (limited to 'ansible/roles/dc03/tasks/set_hostname.yaml')
-rw-r--r--ansible/roles/dc03/tasks/set_hostname.yaml2
1 files changed, 2 insertions, 0 deletions
diff --git a/ansible/roles/dc03/tasks/set_hostname.yaml b/ansible/roles/dc03/tasks/set_hostname.yaml
new file mode 100644
index 0000000..9f697b7
--- /dev/null
+++ b/ansible/roles/dc03/tasks/set_hostname.yaml
@@ -0,0 +1,2 @@
+- name: set hostname
+ win_shell: Rename-Computer -NewName "{{ child_dc03_hostname }}" -Force