Skip to content

Commit

Permalink
ansible: fix adoptopenjdk metadata fetch (#3711)
Browse files Browse the repository at this point in the history
* ansible: fix adoptopenjdk metadata fetch

Pass an empty `body` when fetching AdoptOpenJDK metadata to prevent
getting a 403 error from CloudFlare.

* fixup! ansible: fix adoptopenjdk metadata fetch
  • Loading branch information
richardlau authored May 10, 2024
1 parent 0caa983 commit 56eaa17
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ansible/roles/java-base/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
check_mode: no
register: adoptopenjdk_metadata
uri:
body_format: json
return_content: yes
status_code: 200
url: "https://api.adoptopenjdk.net/v3/assets/feature_releases/{{ adoptopenjdk_version }}/ga?architecture={{ adoptopenjdk_arch }}&image_type=jre&jvm_impl=openj9&os={{ adoptopenjdk_os }}&project=jdk&heap_size=normal&page_size=1&sort_method=DEFAULT&sort_order=DESC&vendor=adoptopenjdk"
Expand Down

0 comments on commit 56eaa17

Please sign in to comment.