File tree Expand file tree Collapse file tree 5 files changed +12
-3
lines changed Expand file tree Collapse file tree 5 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1+ debian.yml
Original file line number Diff line number Diff line change @@ -13,3 +13,7 @@ oracle_java_version_string: "1.{{ oracle_java_version }}.0_{{ oracle_java_versio
1313oracle_java_ansible_arch_mappings :
1414 x86_64 : x64
1515 i386 : i586
16+
17+ # codename hash to convert mint to ubuntu releases
18+ oracle_java_ppa_mint :
19+ sonya : xenial
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ galaxy_info:
3333 - vivid
3434 - trusty
3535 - precise
36+ - name : Linuxmint
37+ versions :
38+ - sonya
3639 galaxy_tags :
3740 - development
3841 - java
Original file line number Diff line number Diff line change 44# Task file to install Oracle Java Development Kit in a system with a Debian based Linux distribution.
55#
66
7- - name : debian | ubuntu | add java ppa repo
7+ - name : debian | ( ubuntu or mint) | add java ppa repo
88 apt_repository :
99 repo=ppa:webupd8team/java
1010 state=present
11+ codename='{{ oracle_java_ppa_mint[ansible_lsb.codename]|default(ansible_lsb.codename) }}'
1112 become : yes
12- when : ansible_distribution == 'Ubuntu'
13+ when : ansible_distribution == 'Ubuntu' or ansible_distribution == 'Linuxmint'
1314
1415- block :
1516 - name : debian | ensure the webupd8 launchpad apt repository key is present
Original file line number Diff line number Diff line change 3333
3434- name : if debian, include family specific task file
3535 include : " debian/main.yml"
36- when : ansible_os_family | lower == 'debian'
36+ when : ansible_os_family | lower == 'debian' or ansible_os_family | lower == 'linuxmint'
3737
3838- name : if redhat, include family specific task file
3939 include : " redhat/main.yml"
You can’t perform that action at this time.
0 commit comments