
Ansible playbook that applies a global JVM environment variable to mitigate the Log4j CVE-2021-44228 remote code execution vulnerability across all hosts in an inventory.
This Ansible playbook applies a global 'JAVA_TOOL_OPTIONS: -Dlog4j2.formatMsgNoLookups=true' to all users.
This mitigates the CVE-2021-44228 exploit for all JVM apps on the hosts in the inventory
To exec:
ansible-playbook playbook.yml -i inventory