From a3c299312880247e5261f0d7c33aa5429d9a2567 Mon Sep 17 00:00:00 2001 From: Joshua Post Date: Fri, 13 Dec 2024 15:01:58 -0600 Subject: [PATCH] Loop labels to name of object --- roles/controller_credential_types/tasks/main.yml | 2 +- roles/controller_workflow_job_templates/tasks/main.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/controller_credential_types/tasks/main.yml b/roles/controller_credential_types/tasks/main.yml index d8c042ec0..e668e285d 100644 --- a/roles/controller_credential_types/tasks/main.yml +++ b/roles/controller_credential_types/tasks/main.yml @@ -45,7 +45,7 @@ loop: "{{ __credentialtypes_job_async.results }}" loop_control: loop_var: __credentialtypes_job_async_result_item - label: "{{ __operation.verb }} Controller Credential Type {{ __credentialtypes_job_async_result_item }} | Wait for finish the credential type {{ __operation.action }}" + label: "{{ __operation.verb }} Controller Credential Type {{ __credentialtypes_job_async_result_item.__controller_credential_type_item.name }} | Wait for finish the credential type {{ __operation.action }}" when: not ansible_check_mode and __credentialtypes_job_async_result_item.ansible_job_id is defined no_log: "{{ controller_configuration_credential_types_secure_logging }}" vars: diff --git a/roles/controller_workflow_job_templates/tasks/main.yml b/roles/controller_workflow_job_templates/tasks/main.yml index 5c9e14569..1c90997d4 100644 --- a/roles/controller_workflow_job_templates/tasks/main.yml +++ b/roles/controller_workflow_job_templates/tasks/main.yml @@ -81,6 +81,7 @@ loop: "{{ controller_workflows | default(workflow_job_templates) }}" loop_control: loop_var: __workflow_loop_item + label: "Workflow {{ __workflow_loop_item.name }}" when: - __workflow_loop_item.simplified_workflow_nodes is defined - (__workflow_loop_item.state | default('present')) == "present"