From c41cda4ff87e89ecf223aa6a0c18d848fb0fbd0b Mon Sep 17 00:00:00 2001 From: heqnx Date: Sat, 12 Jul 2025 17:44:25 +0300 Subject: added hostname to pve vm --- ansible/main.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ansible') 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 }}" -- cgit v1.2.3