Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
java
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
java
Commits
7c09f7e1
Commit
7c09f7e1
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Install openJDK 9 on Ubuntu 16 instead of Oracle Java
parent
9704b9d3
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
defaults/main.yml
+0
-3
0 additions, 3 deletions
defaults/main.yml
meta/main.yml
+0
-3
0 additions, 3 deletions
meta/main.yml
tasks/install-16.yml
+1
-18
1 addition, 18 deletions
tasks/install-16.yml
with
1 addition
and
24 deletions
defaults/main.yml
deleted
100644 → 0
+
0
−
3
View file @
9704b9d3
java_version
:
'
8'
java_license
:
'
v1-1'
java_repo
:
'
webupd8team'
This diff is collapsed.
Click to expand it.
meta/main.yml
deleted
100644 → 0
+
0
−
3
View file @
9704b9d3
---
dependencies
:
[]
This diff is collapsed.
Click to expand it.
tasks/install-16.yml
+
1
−
18
View file @
7c09f7e1
---
# file: roles/java/tasks/install-16.yml
-
name
:
'
Apt
Key'
apt_key
:
url='https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xEA8CACC073C3DB2A'
state=present
-
name
:
"
Apt
Repository"
apt_repository
:
repo='deb http://ppa.launchpad.net/{{ java_repo }}/java/ubuntu {{ ansible_distribution_release }} main'
state='present'
mode='644'
-
name
:
"
Accept
License"
shell
:
'
{{
item
}}'
with_items
:
-
'
echo
debconf
shared/accepted-oracle-license-{{
java_license
}}
select
true
|
/usr/bin/debconf-set-selections'
-
'
echo
debconf
shared/accepted-oracle-license-{{
java_license
}}
seen
true
|
/usr/bin/debconf-set-selections'
-
name
:
"
Install
Agent"
apt
:
pkg='o
racle-java{{ java_version }}-installer
'
pkg='o
penjdk-9-jre
'
state='present'
update_cache=yes
force=yes
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment