I need to set the variables like JAVA_HOME and update PATH.There are a number of ways of doing this. One way is to update the /etc/environment variable and include a line for JAVA_HOME using the lineinfile module and then run the command source /etc/environment directly on the guest OS (CentOS in my case).. Another way is to execute the export command e.g.
command: 'alternatives --install { { jbin }}/javac javac { { item.value.home }}/javac { { item.value.priority }}'. Ansible has modules “replacing” both tar and alternatives command that could be used instead of the command module and UNIX commands shown above. Posted in LINUX. Tagged with alternatives, ansible, java.
How do I get ansible to reuse connections, enable Kerberized SSH, or have Ansible pay attention to my local SSH config file? How do I configure a jump host to access servers that I have no direct access to? How do I speed up management inside EC2? How do I handle python pathing not having a Python 2.X in /usr/bin/python on a remote machine?
To use it in a playbook, specify: community.general.alternatives . ... name: Correct java version selected community.general.alternatives: name: java path: ...
name: Correct java version selected alternatives: name: java path: ... path: /etc/hadoop/conf.ansible - name: Make java 32 bit an alternative with low ...
To use it in a playbook, specify: community.general.alternatives . ... /etc/hadoop/conf.ansible - name: Make java 32 bit an alternative with low priority ...
30.12.2021 · Here, is a curated list of top 8 tools that can easily replace Ansible. This list includes commercial as well as open-source tools with popular features and latest download link. Alternatives to Ansible: Top Picks 1) Rudder Rudder is a DevOps solution for continuous configuration and auditing.
01.12.2021 · community.general.alternatives – Manages alternative programs for common commands Note This plugin is part of the community.general collection (version 4.2.0).