ansible-role-java
ansible-role-java copied to clipboard
Binaries not replaced with architecture change
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?