diff options
Diffstat (limited to 'ansible/roles/dc01/tasks/set_hostname.yaml')
-rw-r--r-- | ansible/roles/dc01/tasks/set_hostname.yaml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ansible/roles/dc01/tasks/set_hostname.yaml b/ansible/roles/dc01/tasks/set_hostname.yaml new file mode 100644 index 0000000..7cca168 --- /dev/null +++ b/ansible/roles/dc01/tasks/set_hostname.yaml @@ -0,0 +1,2 @@ +- name: "{{ ansible_host }}: set hostname" + ansible.windows.win_shell: Rename-Computer -NewName "{{ hostname }}" -Force |