Skip to content

Modernize role: drop Oracle/x86, use DNF, clean up config#2

Open
sdickenson wants to merge 2 commits intomasterfrom
modernize
Open

Modernize role: drop Oracle/x86, use DNF, clean up config#2
sdickenson wants to merge 2 commits intomasterfrom
modernize

Conversation

@sdickenson
Copy link
Member

Summary

  • Drops 32-bit (x86) Java install support and Oracle JDK/JRE provider
  • Removes unnecessary system config management (ldconfig, java.conf, profile.d, javapackages-tools)
  • Modernizes Ansible code: FQCNs, ansible.builtin.dnf, ansible.builtin.command for alternatives
  • Adds java_install_jre variable so both JRE and JDK installs are independently optional (supports Corretto 1.8.0 on EL10 where only -devel packages exist)
  • Updates supported platforms to EL 8/9/10 and Amazon Linux 2/2023, min Ansible 2.10

Test plan

  • Test OpenJDK install on RHEL 9 with defaults
  • Test Amazon Corretto 1.8.0 on EL10 with java_install_jre: False and java_install_devel: True
  • Test java_set_default_version: True sets alternatives correctly
  • Test on Amazon Linux 2 (yum fallback) to confirm backward compatibility

🤖 Generated with Claude Code

- Remove 32-bit (x86) Java install support
- Remove Oracle JDK/JRE provider support
- Remove unnecessary config management (ldconfig, java.conf, profile.d)
- Remove javapackages-tools dependency
- Switch from yum to ansible.builtin.dnf module
- Use FQCNs throughout, replace deprecated state: installed
- Replace community.general.alternatives with ansible.builtin.command
- Add java_install_jre variable to make JRE install optional
- Remove disable_excludes from package tasks
- Consolidate tasks into main.yml
- Update supported platforms to EL 8/9/10 and Amazon Linux 2/2023
- Bump min_ansible_version to 2.10
- Update README with current variables and examples

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sdickenson sdickenson requested a review from a team March 21, 2026 20:04
Adds java_configure_corretto_repo variable to import the Corretto GPG
key and configure the yum/dnf repository before package installation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant