summaryrefslogtreecommitdiff
path: root/ansible/roles/dc02/tasks/set_hostname.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/dc02/tasks/set_hostname.yaml')
-rw-r--r--ansible/roles/dc02/tasks/set_hostname.yaml2
1 files changed, 2 insertions, 0 deletions
diff --git a/ansible/roles/dc02/tasks/set_hostname.yaml b/ansible/roles/dc02/tasks/set_hostname.yaml
new file mode 100644
index 0000000..d279485
--- /dev/null
+++ b/ansible/roles/dc02/tasks/set_hostname.yaml
@@ -0,0 +1,2 @@
+- name: set hostname
+ win_shell: Rename-Computer -NewName "{{ tree_dc02_hostname }}" -Force