Repository navigation
Labels
area/ciCI/CD — GitHub Actions, Maven caching, runner images, release automationCI/CD — GitHub Actions, Maven caching, runner images, release automationhelp wantedkind/bugCategorizes a PR related to a bugCategorizes a PR related to a bugpriority/normalrelease/26.7.0status/auto-bumpstatus/auto-expireteam/continuous-delivery
Description
Before reporting an issue
- I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.
Area
ci
Describe the bug
The Ansible task Install Maven repository on the remote hosts in .github/scripts/ansible/roles/keycloak_remote_installer/tasks/install.yml is always skipped due to a creates directive that checks for a path (/opt/keycloak) already created by a prior step.
Version
nightly
Regression
- The issue is a regression
Expected behavior
The m2 archive should be extracted to the user's home directory on the VM (/home/<user>/.m2/) so Maven can use the cached dependencies.
I guess there are wo issues:
creates: "{{ kc_home }}"-/opt/keycloakis created from prior step at line 40, so this task is always skippeddest: "{{ kc_home }}"- even if extracted,.m2/would land at/opt/keycloak/.m2/instead of/home/<user>/.m2/where Maven looks
Actual behavior
The m2 archive is created on the GitHub runner (tar -C ~/ -czvf m2.tar.gz .m2) but never extracted on the VM:
TASK [keycloak_remote_installer : Install Maven repository on the remote hosts] ***
skipping: [keycloak] => {
"changed": false,
"msg": "skipped, since /opt/keycloak exists"
- Aurora: https://github.com/keycloak/keycloak/actions/runs/24493041818/job/71581850585 (search for "Install Maven repository")
- Azure: https://github.com/keycloak/keycloak/actions/runs/24493041818/job/71581850571 (search for "Install Maven repository")
All dependencies are downloaded from Maven Central on every run.
How to Reproduce?
Run Aurora/Azure workflow.
Anything else?
No response
Reacted by keycloak-github-bot
Metadata
Metadata
Assignees
Labels
area/ciCI/CD — GitHub Actions, Maven caching, runner images, release automationCI/CD — GitHub Actions, Maven caching, runner images, release automationhelp wantedkind/bugCategorizes a PR related to a bugCategorizes a PR related to a bugpriority/normalrelease/26.7.0status/auto-bumpstatus/auto-expireteam/continuous-delivery
Type
Fields
No fields configured for bug.
Activity
keycloak-github-bot commentedon Apr 16, 2026
Due to the amount of issues reported by the community we are not able to prioritise resolving this issue at the moment.
If you are affected by this issue, upvote it by adding a 👍 to the description. We would also welcome a contribution to fix the issue.
Pepo48 commentedon Apr 16, 2026
Azure test run: https://github.com/Pepo48/keycloak/actions/runs/24530708473/job/71713167931
Edit: seems to work now, search in logs:
PUT /tmp/m2.tar.gz TO /home/azureuser/.ansible/tmp/.../source (line 2644)
"handler": "TgzArchive", "dest": "/home/azureuser", "rc": 0, "changed": true (line 2660)
/usr D72D /bin/tar --extract -C /home/azureuser -z --owner=azureuser (line 2660)
Fix Maven repository extraction on Aurora/Azure VMs
Fix Maven repository extraction on Aurora/Azure VMs (#48175)
Fix Maven repository extraction on Aurora/Azure VMs (keycloak#48175)
Fix Maven repository extraction on Aurora/Azure VMs (keycloak#48175)