diff options
author | heqnx <root@heqnx.com> | 2025-07-12 17:44:25 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-07-12 17:44:25 +0300 |
commit | c41cda4ff87e89ecf223aa6a0c18d848fb0fbd0b (patch) | |
tree | a0fca5144af65b6cdb07cd94f87bf081cff51d6c /ansible | |
parent | 62acc6423bfead7cee08352dfc92e154eabbb4aa (diff) | |
download | ansible-active-directory-range-c41cda4ff87e89ecf223aa6a0c18d848fb0fbd0b.tar.gz ansible-active-directory-range-c41cda4ff87e89ecf223aa6a0c18d848fb0fbd0b.zip |
added hostname to pve vm
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/main.yaml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ansible/main.yaml b/ansible/main.yaml index df44b76..ce477c3 100644 --- a/ansible/main.yaml +++ b/ansible/main.yaml @@ -9,7 +9,7 @@ os_type: "windows" template: "{{ windows_server_template_name }}" id: "{{ windows_server_template_id }}" - vm: "{{ main_dc01_hostname }}" + vm: "{{ main_dc01_hostname }}.{{ main_domain_name }}" newid: "{{ main_dc01_vmid }}" vmid: "{{ main_dc01_vmid }}" ip: "{{ main_dc01_ip_address }}" @@ -22,7 +22,7 @@ - name: "add {{ main_dc01_hostname }}.{{ main_domain_name }} to in-memory inventory" add_host: name: "{{ main_dc01_hostname }}.{{ main_domain_name }}" - ansible_host: "{{ main_dc01_ip_address }}" + ansible_host: "{{ main_dc01_ip_address }}.{{ main_domain_name }}" ansible_connection: "{{ win_connector }}" ansible_user: "{{ default_win_username }}" ansible_password: "{{ default_win_password }}" @@ -38,7 +38,7 @@ os_type: "linux" template: "{{ linux_server_template_name }}" id: "{{ linux_server_template_id }}" - vm: "{{ main_linux_srv01_hostname }}" + vm: "{{ main_linux_srv01_hostname }}.{{ main_domain_name }}" newid: "{{ main_linux_srv01_vmid }}" vmid: "{{ main_linux_srv01_vmid }}" ip: "{{ main_linux_srv01_ip_address }}" |