asking for Ansible guru to help figure out. is it possible or not by Ansible
Jdk is downloaded and extracted to
/apps/tools/jdk_1.8.121binaries -
/apps/tools/jdk_1.8.121/bin
needed
each binary in /apps/tools/jdk_1.8.121/bin/java, java, javadoc,
... .... and so on approximately 40 items, push to loop to alternatives programm
alternatives --install /usr/bin/java java /apps/tools/jdk_1.8.121/bin/java 1000 alternatives --install /usr/bin/{{ var }} {{var}} /apps/tools/jdk_1.8.121/bin/{{var}} 1000