diff options
author | heqnx <root@heqnx.com> | 2025-07-12 14:41:46 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-07-12 14:41:46 +0300 |
commit | 6e559dd880cf72b23c98d63e53982e4f359747f4 (patch) | |
tree | 7586d79ccfabb2afb4e0d8ba711bfca6e75d311b /ansible/roles/proxmox_vm/tasks/get_ip.yaml | |
parent | 5c07039ceb41ad6867213827440876a74f586aad (diff) | |
download | ansible-active-directory-range-6e559dd880cf72b23c98d63e53982e4f359747f4.tar.gz ansible-active-directory-range-6e559dd880cf72b23c98d63e53982e4f359747f4.zip |
explicit task names
Diffstat (limited to 'ansible/roles/proxmox_vm/tasks/get_ip.yaml')
-rw-r--r-- | ansible/roles/proxmox_vm/tasks/get_ip.yaml | 11 |
1 files changed, 5 insertions, 6 deletions
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 }}" |