summaryrefslogtreecommitdiff
path: root/ansible/roles/dc01/tasks/set_hostname.yaml
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-07-12 13:15:48 +0300
committerheqnx <root@heqnx.com>2025-07-12 13:15:48 +0300
commit5c07039ceb41ad6867213827440876a74f586aad (patch)
treebce1eaf4d7b8a47696272b91938def0981c93b75 /ansible/roles/dc01/tasks/set_hostname.yaml
parent5a0f9c70eb028fc6bf04b9cdf39904fe5391612b (diff)
downloadansible-active-directory-range-5c07039ceb41ad6867213827440876a74f586aad.tar.gz
ansible-active-directory-range-5c07039ceb41ad6867213827440876a74f586aad.zip
working setup now with dynamic inventory
Diffstat (limited to 'ansible/roles/dc01/tasks/set_hostname.yaml')
-rw-r--r--ansible/roles/dc01/tasks/set_hostname.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/dc01/tasks/set_hostname.yaml b/ansible/roles/dc01/tasks/set_hostname.yaml
index 7cca168..73fa63c 100644
--- a/ansible/roles/dc01/tasks/set_hostname.yaml
+++ b/ansible/roles/dc01/tasks/set_hostname.yaml
@@ -1,2 +1,2 @@
- name: "{{ ansible_host }}: set hostname"
- ansible.windows.win_shell: Rename-Computer -NewName "{{ hostname }}" -Force
+ ansible.windows.win_shell: Rename-Computer -NewName "{{ main_dc01_hostname }}" -Force