Do not install javamelody on Ubuntu Trusty.

This commit is contained in:
Andrea Dell'Amico 2022-03-29 16:26:31 +02:00
parent c73136c06e
commit 02aa0ad579
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 4 additions and 9 deletions

View File

@ -1,10 +1,6 @@
---
- name: Manage the javamelody installation
block:
- set_fact:
ansible_python_interpreter: /usr/bin/python3.6
when: ansible_distribution_release == "trusty"
- name: Install the javamelody dependency jar into the Java shared libs directory
maven_artifact: artifact_id=jrobin version=latest group_id=org.jrobin extension=jar dest=/usr/share/java/jrobin.jar verify_checksum=always mode=0644 owner=root group=root repository_url=https://repo1.maven.org/maven2
@ -17,11 +13,10 @@
- javamelody-core.jar
- jrobin.jar
- set_fact:
ansible_python_interpreter: /usr/bin/python
when: ansible_distribution_release == "trusty"
when: tomcat_javamelody
when:
- tomcat_javamelody
- ansible_distribution == "Ubuntu"
- ansible_distribution_version is version_compare('16.04', '>=')
tags: [ 'tomcat', 'tomcat_javamelody', 'tomcat_conf' ]
- name: Remove the javamelody jar and its dependencies if the javamelody support is disabled