Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 22 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,31 @@ env:
ANSIBLE_FORCE_COLOR: 1
ANSIBLE_STDOUT_CALLBACK: yaml
jobs:
sonarcloud:
name: SonarCloud
sonarqube:
name: SonarQube
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
ubuntu-22:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4.1.7
with:
fetch-depth: 0
- name: Install ansible
run: |
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible -y
ansible --version
- name: Run playbook
run: |
cd ..
ansible-playbook ansible-role-java/playbook.yml
19 changes: 3 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,7 @@ Requirements
- Ubuntu bionic: repositories, tarball
- Debian stretch: tarball
- Windows: tarball
- 12
- EL 6: tarball
- EL 7: tarball
- EL 8: tarball
- Ubuntu bionic: tarball
- Debian stretch: tarball
- Windows: tarball
- 13
- EL 6: tarball, fallback
- EL 7: tarball, fallback
- EL 8: tarball, fallback
- Ubuntu bionic: tarball, fallback
- Debian stretch: tarball, fallback
- Windows: tarball, fallback
- 17
- **Supported oracle java version**:
- 7
- 8
Expand Down Expand Up @@ -279,7 +266,7 @@ Example Playbook
java_major_version: 17
```

### Installing OpenJDK 8 from repositories:
### Installing OpenJDK 17 from repositories:

```yaml
- name: Install openjdk java
Expand All @@ -288,7 +275,7 @@ Example Playbook
roles:
- role: lean_delivery.java
transport: repositories
java_major_version: 8
java_major_version: 17
```

### Installing OpenJDK 11 from web:
Expand Down
6 changes: 6 additions & 0 deletions playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- name: Install Java
hosts: localhost
roles:
- role: ansible-role-java
transport: repositories
java_major_version: 17