Skip to content
Snippets Groups Projects
Commit 7b924487 authored by Franck Bebel's avatar Franck Bebel Committed by Makhtar DIAGNE
Browse files

[devops] add validation of java 11

parent 1ab56f1a
No related branches found
No related tags found
1 merge request!1Feature/design/1
---
- 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
---
- name: check if java 11 is the version installed
include_tasks: check_java.yml
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment