Code Monkey home page Code Monkey logo

Comments (3)

rdonkin avatar rdonkin commented on August 17, 2024

I'm not using RHEL 8 at the moment, but I have had possibly related issues on CentOS 7.6 with Python 3.6, and would like to get RHEL 8 working soon.

Beyond the specific error from with the dnf module above, you may be running into the difference between Yum 3 and Yum 4 - the latter is based on the new DNF package manager, which replaces the original Yum 3. Yum 4 and DNF are in preview on CentOS 7.6 and the default in RHEL 8.

  • this role uses the package module, which maps to dnf module on RHEL 8 (possibly to the yum module with dnf backend), and to yum module on RHEL 7.x

There is an interaction with Python 3 here - I found that, although Ansible runs fine on Python 3 generally, the Ansible yum module actually requires Yum 4. Since this is in preview on CentOS 7.6 I ended up making Ansible run on Python 2.7 so that I could use Yum 3.

For RHEL 8, I think you would need to use Yum 4 or DNF. For Python 3 on CentOS 7.6, I think it's best to force the Yum 3 backend with the yum module.

Some background that may be useful:

On the specific error, your DNF cache may be corrupt, or you might need to configure HTTP proxy setup, etc - Google results for Failed to synchronize cache for repo "rhui-client-config-server-8" may be helpful.

from ansible-role-java.

geerlingguy avatar geerlingguy commented on August 17, 2024

Taking a look now. This shouldn't be too difficult to implement, as I now have a CentOS 8 test/CI environment.

from ansible-role-java.

geerlingguy avatar geerlingguy commented on August 17, 2024

Looks like in RHEL 8 available versions are:

  • java-1.8.0-openjdk
  • java-11-openjdk
  • java-latest-openjdk

from ansible-role-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.