Graylog2 / graylog-ansible-role

Ansible role which installs and configures Graylog
Apache License 2.0
212 stars 127 forks source link

Role fails due to oracle-java8-installer unavailability #106

Closed Madnessy closed 4 years ago

Madnessy commented 5 years ago

Role fails on ubuntu 16.04 with this message :

TASK [Graylog2.graylog-ansible-role : Java 8 should be installed] **************************************************************************
fatal: [graylog01]: FAILED! => {"changed": false, "msg": "No package matching 'oracle-java8-installer' is available"}

according to the installation manual it's not even required ? http://docs.graylog.org/en/2.4/pages/installation/os/ubuntu.html

Madnessy commented 5 years ago

Well this isnt fixed cause my pr is declined. Is there any eta on the "new" ansible playbook ?

CVirus commented 5 years ago

Try this instead:

java_packages:
  - openjdk-8-jre-headless
Madnessy commented 5 years ago

well either i do not install java using the graylog role or use a fork which allows to install openjdk. Cause the java package is hard coded in the task file: https://github.com/Graylog2/graylog-ansible-role/blob/e944232eddd6b6f22a29da98c1223eda1bc2a246/tasks/java-Debian.yml#L36-L39

CVirus commented 5 years ago

well either i do not install java using the graylog role or use a fork which allows to install openjdk. Cause the java package is hard coded in the task file: https://github.com/Graylog2/graylog-ansible-role/blob/e944232eddd6b6f22a29da98c1223eda1bc2a246/tasks/java-Debian.yml#L36-L39

You're right.

The readme shows an example on how to do that https://github.com/Graylog2/graylog-ansible-role/blob/master/README.md#details-to-avoid-issues-with-java-install-behind-proxy-use-openjdk

malcyon commented 4 years ago

I updated the role to use lean_delivery.java when graylog_install_java is True. It looks way more flexible.

https://github.com/lean-delivery/ansible-role-java