gantsign / ansible-role-java

Ansible role for installing Java from Adoptium

Home Page:https://galaxy.ansible.com/gantsign/java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Binaries not replaced with architecture change

MatrixCrawler opened this issue · comments

Following Situation:

We have multiple x86_64 instances with java installed by this role.
Now we are considering changing the architecture of the existing instances to ARM and we realized that the java binaries are not replaced.
The role see's the binaries and does not reflect the architecture change that would make it necessary to replace them as they cannot be executed on an ARM Architecture.

Maybe you could store a fact for the installed architecture model and if the ansible_architecture actually differs from the fact, replace the binaries?