Skip to content

Commit

Permalink
fixes problems with AAP setup downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
snagoor committed Oct 20, 2023
1 parent 98814a4 commit be35cdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/aap_setup_download/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

- name: Simplify the list of possible downloads
ansible.builtin.set_fact:
__aap_setup_down_images: "{{ __aap_setup_down_output.json.body | sort(attribute='datePublished', reverse=True) }}"
__aap_setup_down_images: "{{ __aap_setup_down_output.json.body | selectattr('filename', 'match', 'ansible-automation-platform-setup') | sort(attribute='datePublished', reverse=True) }}"

- name: Downloading the latest installer of type {{ aap_setup_down_type }}
ansible.builtin.get_url:
Expand All @@ -31,7 +31,7 @@
mode: 0644
headers:
Authorization: "Bearer {{ __aap_setup_down_login.json.access_token }}"
loop: "{{ __aap_setup_down_images[:3] }}"
loop: "{{ __aap_setup_down_images }}"
when: ((aap_setup_down_type | string) + '-' + (aap_setup_down_version | string)) in item.filename
register: __aap_setup_down_downloads

Expand Down

0 comments on commit be35cdb

Please sign in to comment.