Skip to content

Commit

Permalink
Fixed lint errors (#377)
Browse files Browse the repository at this point in the history
In preparation for upgrade to Ansible Lint 24.10.0.
  • Loading branch information
freemanjp authored Nov 18, 2024
1 parent e8dce68 commit f4228c7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
day: saturday
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
day: saturday
8 changes: 6 additions & 2 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# code: language=ansible
---
# Java Adoptium release
java_release: "{{ java_version | string | regex_search('^((?:[0-9]+\\.)*)([0-9]+)$') | ternary('[' + (java_version | string) + ',' + (java_version | string | regex_replace('^((?:[0-9]+\\.)*)([0-9]+)$', '\\1')) + (((java_version | string | regex_replace('^((?:[0-9]+\\.)*)([0-9]+)$', '\\2') | int) + 1) | string) + ')', '[' + java_version + ',' + java_version + '.1)') }}"
java_release: "{{ java_version | string | regex_search('^((?:[0-9]+\\.)*)([0-9]+)$') | ternary(\
'[' + (java_version | string) + ',' + (java_version | string | regex_replace('^((?:[0-9]+\\.)*)([0-9]+)$', '\\1')) + \
(((java_version | string | regex_replace('^((?:[0-9]+\\.)*)([0-9]+)$', '\\2') | int) + 1) | string) + ')', \
'[' + java_version + ',' + java_version + '.1)') }}"

# The root folder of this Java installation
java_home: '{{ java_install_dir }}/{{ java_release_name }}'
Expand All @@ -10,7 +13,8 @@ java_home: '{{ java_install_dir }}/{{ java_release_name }}'
java_api_server: 'https://api.adoptium.net'

# The URL for the Adoptium API requests
java_api_request: "{{ java_api_server }}/v3/assets/version/{{ java_release | urlencode }}?jvm_impl=hotspot&os={{ java_os }}&architecture={{ java_arch }}&heap_size={{ java_heap_size }}&image_type=jdk&project=jdk&release_type=ga&page_size=1&sort_order=DESC&vendor=adoptium"
java_api_request: "{{ java_api_server }}/v3/assets/version/{{ java_release | urlencode }}?jvm_impl=hotspot&os={{ java_os }}&architecture={{ java_arch }}\
&heap_size={{ java_heap_size }}&image_type=jdk&project=jdk&release_type=ga&page_size=1&sort_order=DESC&vendor=adoptium"

# Operating System
java_os: linux
Expand Down

0 comments on commit f4228c7

Please sign in to comment.