ansible: Ensure log4j-1.2.jar link exists on SLES12
authorKienan Stewart <kstewart@efficios.com>
Thu, 11 Jul 2024 19:13:04 +0000 (15:13 -0400)
committerKienan Stewart <kstewart@efficios.com>
Thu, 11 Jul 2024 20:12:43 +0000 (16:12 -0400)
Change-Id: I7672e45845e37284f0fd403dfeeac8398eb3fb9e
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
automation/ansible/roles/lttng-ust/tasks/setup-Suse.yml

index b8f6378e83ef8b1e0bdec1fb269892383ad05b15..6625f9494effce3a2f9b88e91ed04a58a3e12f38 100644 (file)
@@ -2,6 +2,13 @@
 - name: Ensure lttng-ust build dependencies are installed.
   zypper: "name={{ lttng_ust_packages }} state=installed update_cache=yes"
 
+- name: Ensure log4j-1.2.jar exists
+  when: ansible_distribution_major_version == "12"
+  ansible.builtin.file:
+    state: link
+    src: '/usr/share/java/log4j-1.2.jar'
+    dest: '/usr/share/java/log4j.jar'
+
 # log4j2 is required for testing all the java agents, but is not available
 # on SLES12SP5 via packages.
 - name: Manually install log4j2
This page took 0.023238 seconds and 4 git commands to generate.