From 6e559dd880cf72b23c98d63e53982e4f359747f4 Mon Sep 17 00:00:00 2001 From: heqnx Date: Sat, 12 Jul 2025 14:41:46 +0300 Subject: explicit task names --- ansible/roles/proxmox_vm/tasks/get_ip.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'ansible/roles/proxmox_vm/tasks/get_ip.yaml') diff --git a/ansible/roles/proxmox_vm/tasks/get_ip.yaml b/ansible/roles/proxmox_vm/tasks/get_ip.yaml index 584b44d..14a7e47 100644 --- a/ansible/roles/proxmox_vm/tasks/get_ip.yaml +++ b/ansible/roles/proxmox_vm/tasks/get_ip.yaml @@ -1,5 +1,4 @@ ---- -- name: "vmid {{ clone_result.vmid }}: getting config via proxmox api" +- name: "{{ fqdn }} : getting config via proxmox api" set_fact: vm_config: "{{ lookup('url', config_url, validate_certs=False, headers=config_headers) }}" vars: @@ -7,7 +6,7 @@ config_headers: Authorization: "PVEAPIToken={{ proxmox_username }}!{{ proxmox_api_token_id }}={{ proxmox_api_token_secret }}" -- name: "vmid {{ clone_result.vmid }}: extracting ipv4 address" +- name: "{{ fqdn }}: extracting ipv4 address" set_fact: vm_ip: >- {{ @@ -20,10 +19,10 @@ | first }} -- name: "vmid {{ clone_result.vmid }}: ip address result" +- name: "{{ fqdn }}: ip address result" ansible.builtin.debug: - msg: "vmid {{ clone_result.vmid }} ip address is {{ vm_ip }}" + msg: "{{ fqdn }} ip address is {{ vm_ip }}" -- name: "vmid {{ clone_result.vmid }}: set ip to {{ vm_ip }}" +- name: "{{ fqdn }}: set ip to {{ vm_ip }}" set_fact: ansible_host: "{{ vm_ip }}" -- cgit v1.2.3