Skip to content

Commit

Permalink
Update awx_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealHaoLiu committed May 21, 2024
1 parent 066a9d8 commit 339ea2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions molecule/default/tasks/awx_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@

- name: Get list of instances
uri:
url: "http://localhost/awx/api/v2/instances"
url: "http://localhost/awx/api/v2/instances/"
user: admin
password: "{{ admin_pw_secret.resources[0].data.password | b64decode }}"
force_basic_auth: yes
register: instances_list

- name: Store instance_list debug output
- name: Store instances_list debug output
copy:
content: "{{ instances_list | to_nice_json }}"
dest: "{{ debug_output_dir }}/instances_list.json"
Expand All @@ -206,7 +206,7 @@
password: "{{ admin_pw_secret.resources[0].data.password | b64decode }}"
force_basic_auth: yes
loop: |
{{ instances_list | map(attribute='json') | map(attribute='results') | flatten | map(attribute='url') }}
{{ instances_list.json.results | map(attribute='url') }}
loop_control:
loop_var: item
register: instances_details
Expand Down

0 comments on commit 339ea2e

Please sign in to comment.