summaryrefslogtreecommitdiff
path: root/ansible/roles/dc03/tasks/set_hostname.yaml
diff options
context:
space:
mode:
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