From 5c07039ceb41ad6867213827440876a74f586aad Mon Sep 17 00:00:00 2001 From: heqnx Date: Sat, 12 Jul 2025 13:15:48 +0300 Subject: working setup now with dynamic inventory --- ansible/roles/dc01/tasks/set_hostname.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ansible/roles/dc01/tasks/set_hostname.yaml') 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 -- cgit v1.2.3