Skip to content

Commit

Permalink
chore: Adding apt update before apt usage
Browse files Browse the repository at this point in the history
  • Loading branch information
hypery2k committed Mar 6, 2024
1 parent 261bde1 commit 71ed07f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/java/ansible/openjdk11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
- maven_version: 3.9.6
pre_tasks:
- raw: mkdir -p /etc/ssl/certs/java
- name: Update first
apt:
update_cache: true
upgrade: safe
- name: Install JDK
apt:
name: '{{ java_package }}'
Expand Down
4 changes: 4 additions & 0 deletions docker/java/ansible/openjdk17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
- maven_version: 3.9.6
pre_tasks:
- raw: mkdir -p /etc/ssl/certs/java
- name: Update first
apt:
update_cache: true
upgrade: safe
- name: Install CA
apt:
name: ca-certificates-java
Expand Down
4 changes: 4 additions & 0 deletions docker/java/ansible/openjdk21.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
- maven_version: 3.9.6
pre_tasks:
- raw: mkdir -p /etc/ssl/certs/java
- name: Update first
apt:
update_cache: true
upgrade: safe
- name: Download JDK
get_url:
url="{{ jdk_deb }}"
Expand Down

0 comments on commit 71ed07f

Please sign in to comment.