Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vitamui-pr-pastis
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dad
vitamui-pr-pastis
Commits
7b924487
Commit
7b924487
authored
4 years ago
by
Franck Bebel
Committed by
Makhtar DIAGNE
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[devops] add validation of java 11
parent
1ab56f1a
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Feature/design/1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
deployment/roles/checks/tasks/check_java.yml
+24
-0
24 additions, 0 deletions
deployment/roles/checks/tasks/check_java.yml
deployment/roles/checks/tasks/main.yml
+2
-0
2 additions, 0 deletions
deployment/roles/checks/tasks/main.yml
with
26 additions
and
0 deletions
deployment/roles/checks/tasks/check_java.yml
0 → 100644
+
24
−
0
View file @
7b924487
---
-
name
:
force java-1.8 is absent
package
:
name
:
"
openjdk-8-jdk-headless"
state
:
absent
when
:
ansible_os_family == "Debian"
-
name
:
force java-1.8.0-openjdk is absent
package
:
name
:
"
java-1.8.0-openjdk"
state
:
absent
when
:
ansible_os_family == "RedHat"
-
name
:
force java-1.8.0-openjdk-headless is absent
package
:
name
:
"
java-1.8.0-openjdk-headless"
state
:
absent
when
:
ansible_os_family == "RedHat"
-
name
:
install java 11 on the machine
package
:
name
:
"
java-11-openjdk-headless"
state
:
present
when
:
ansible_os_family == "RedHat
\ No newline at end of file
This diff is collapsed.
Click to expand it.
deployment/roles/checks/tasks/main.yml
+
2
−
0
View file @
7b924487
---
-
name
:
check if java 11 is the version installed
include_tasks
:
check_java.yml
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
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