Comments (3)
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 todnf
module on RHEL 8 (possibly to theyum
module withdnf
backend), and toyum
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:
- ansible/ansible#32532 - ansible yum not working ยท Issue #32532 ยท ansible/ansible
- https://people.redhat.com/mskinner/rhug/q3.2018/MSP-RHUG-YUM-is-dead-Long-live-YUM.pdf - presentation about Yum 4 upgrade from Red Hat
- https://www.reddit.com/r/ansible/comments/9wl579/yumuse_backend_and_adhoc_commands/ Ansible thread about yum with use_backend option for Yum 3 or 4
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.
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.
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)
- Installing this with ansible-galaxy fails on certificate issue HOT 1
- Add OracleLinux distribution HOT 3
- Centos7 Issue HOT 2
- Ubuntu vagrant box support HOT 3
- Role needs ability to check and ensure a specific version of JDK is installed HOT 2
- Fix ansible-lint issue HOT 3
- Ubuntu 20.04 - openjdk-8 installs openjdk-11 HOT 1
- For people wanting jps support
- openjdk-11-jdk on Ubuntu 20.04 Focal Fossa LTS HOT 2
- Code style HOT 1
- Java 11 is available on Red Hat/CentOS 7
- Ensure Java is installed: install 'openjdk-11-jdk'' failed HOT 2
- man directory task always changed on Ubuntu 20.04 HOT 5
- Add Red Hat 9 (rockylinux9) support
- Feature: Need Amazon Linux 2 inclusion in supported OS list HOT 2
- uninstall the openjdk ubuntu in virtualmachine HOT 3
- Feature suggestion: add root certificates to truststore HOT 3
- geerlingguy.java was NOT installed successfully: Unable to compare role versions HOT 3
- no java packages installed on Oracle Linux HOT 2
- SyntaxError: future feature annotations is not defined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-java.