Skip to content

Commit

Permalink
Symlink java11 to make sure it's in the path
Browse files Browse the repository at this point in the history
RE #62
  • Loading branch information
cailafinn committed Jun 6, 2023
1 parent 3bbc583 commit fc4fd35
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions macOS/jenkins-node/ansible/roles/agent/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@
name: java11
state: present

- name: Symlink Java 11.
shell: ln -sfn /opt/homebrew/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk
become: true
become_user: root

- name: Ensure that the java install has been added to the path
ansible.builtin.lineinfile:
path: ~/.zshrc
line: export PATH="/opt/homebrew/opt/openjdk@11/bin:$PATH"
create: true

# Configure macOS Settings.

- name: Disable screensaver.
Expand Down

0 comments on commit fc4fd35

Please sign in to comment.