Skip to content

Commit

Permalink
ansible: update freebsd12 to Java 11
Browse files Browse the repository at this point in the history
Update Ansible scripts for FreeBSD 12 to update to Java 11. Also fixes
issues with the scripts running with Ansible 2.11.2.
  • Loading branch information
richardlau committed Oct 13, 2022
1 parent 04fb086 commit e61ec8f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ansible/roles/java-base/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ packages: {
'debian10': 'openjdk-11-jre-headless',
'fedora': 'java-17-openjdk-headless',
'fedora32': 'java-11-openjdk-headless',
'freebsd': 'openjdk8-jre',
'freebsd': 'openjdk11-jre',
'ibmi': 'openjdk-11-ea',
'macos': 'adoptopenjdk8',
'rhel7': 'java-11-openjdk',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@
#

- name: install pip
package: name=py38-pip state=present
package:
name: py39-pip
state: present

- name: freebsd | update pip3 symlink
when: os == "freebsd12"
file:
dest: "/usr/local/bin/pip3"
state: link
src: "/usr/local/bin/pip-3.8"
src: "/usr/local/bin/pip-3.9"

- name: install tap2junit
pip: name=tap2junit state=present
pip:
executable: pip3
name: tap2junit
state: present
2 changes: 1 addition & 1 deletion ansible/roles/package-upgrade/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'yum': ['centos', 'rhel7', 'aix71', 'aix72', 'ibmi'],
'apt': ['debian', 'ubuntu'],
'dnf': ['aix73', 'fedora', 'rhel8'],
'pkg': 'freebsd',
'pkgng': 'freebsd',
'pkgin': 'smartos',
'chocolatey': 'win',
'brew': 'macos'
Expand Down

0 comments on commit e61ec8f

Please sign in to comment.