Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oracle JDK not supported #42

Closed
netsensei opened this issue Mar 17, 2017 · 5 comments
Closed

Oracle JDK not supported #42

netsensei opened this issue Mar 17, 2017 · 5 comments
Labels

Comments

@netsensei
Copy link

I was trying to provision Oracle JDK instead of Open JDK with this role. But this gives me an error.

play.yml:

tasks:
    - name: Installing repo for Java 8 in Ubuntu
      become: true
      apt_repository: repo='ppa:webupd8team/java'

roles:
  - { role: geerlingguy.java  }

group_vars.yml

java_packages:
  - oracle-java8-installer
  - ca-certificates
  - oracle-java8-set-default

But this will fail with an error because the license this package presents, cannot be accepted in a non-interactive shell. In order to accomplish this, you need to add this extra task in the role:

main.yml

- name: Accept Java 8 License
  become: yes
  debconf: name='oracle-java8-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select'
@afeld
Copy link

afeld commented May 18, 2017

While I'd love for this role to support Oracle Java, FYI that https://github.com/William-Yeh/ansible-oracle-java works (for me) in the meantime.

Gabelbombe added a commit to Gabelbombe/ansible-role-jenkins that referenced this issue Oct 25, 2018
@030
Copy link
Contributor

030 commented Dec 7, 2018

@tgadiev
Copy link

tgadiev commented Feb 19, 2019

If someone needs oracle-java to install, I'd suggest to look at this role:
https://github.com/lean-delivery/ansible-role-java

@stale
Copy link

stale bot commented Mar 6, 2020

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@stale stale bot added the stale label Mar 6, 2020
@stale
Copy link

stale bot commented Apr 5, 2020

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

@stale stale bot closed this as completed Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants