From f05faaaaa013f286564ddf7e8020f4be5d7d0f1f Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Fri, 4 Feb 2022 16:12:28 -0500 Subject: [PATCH] Add some loop control for ansible warnings --- molecule/default/tasks/awx_test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/molecule/default/tasks/awx_test.yml b/molecule/default/tasks/awx_test.yml index 7a68fa87..de844150 100644 --- a/molecule/default/tasks/awx_test.yml +++ b/molecule/default/tasks/awx_test.yml @@ -55,7 +55,7 @@ rescue: - name: Get list of project updates and jobs uri: - url: "http://localhost/api/v2/{{ item }}/" + url: "http://localhost/api/v2/{{ resource }}/" user: admin password: "{{ admin_pw_secret.resources[0].data.password | b64decode }}" force_basic_auth: yes @@ -63,15 +63,19 @@ loop: - project_updates - jobs + loop_control: + loop_var: resource - name: Get all job and project details uri: - url: "http://localhost{{ item }}" + url: "http://localhost{{ endpoint }}" user: admin password: "{{ admin_pw_secret.resources[0].data.password | b64decode }}" force_basic_auth: yes loop: | {{ job_lists.results | map(attribute='json') | map(attribute='results') | flatten | map(attribute='url') }} + loop_control: + loop_var: endpoint - name: Re-emit failure vars: