diff options
author | heqnx <root@heqnx.com> | 2025-07-12 13:15:48 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-07-12 13:15:48 +0300 |
commit | 5c07039ceb41ad6867213827440876a74f586aad (patch) | |
tree | bce1eaf4d7b8a47696272b91938def0981c93b75 /ansible/roles/dc01/tasks/set_hostname.yaml | |
parent | 5a0f9c70eb028fc6bf04b9cdf39904fe5391612b (diff) | |
download | ansible-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.yaml | 2 |
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 |