setup-cockpit/roles/java/tasks/main.yml

14 lines
276 B
YAML

---
- name: Install java-openjdk (Archlinux)
become: true
pacman:
name:
- jdk-openjdk
when: ansible_distribution == 'Archlinux'
- name: Install java-openjdk (Debian)
become: true
apt:
name:
- jdk-openjdk
when: ansible_distribution == 'Debian'