Compatibility with tomcat 8.

This commit is contained in:
Andrea Dell'Amico 2019-04-02 17:21:55 +02:00
parent d045eb53d1
commit 2524709789
4 changed files with 7 additions and 7 deletions

View File

@ -8,10 +8,12 @@
- tomcat_jmx_auth_enabled
tags: [ 'tomcat', 'jmx' ]
- import_tasks: tomcat-log4j-logging.yml
when: tomcat_use_log4j
when:
- tomcat_use_log4j
- tomcat_version <= '7'
tags: [ 'tomcat', 'tomcat_log4j' ]
- import_tasks: tomcat-logger-logging.yml
when: not tomcat_use_log4j
when: not tomcat_use_log4j or tomcat_version > '7'
- import_tasks: access_log.yml
when: tomcat_access_log_enabled
- import_tasks: pgsql_jdbc.yml

View File

@ -1,7 +1,6 @@
---
- name: Install the tomcat console management package
apt: pkg={{ item }} state={{ tomcat_pkg_state }}
with_items: 'tomcat{{ tomcat_version }}-admin'
apt: pkg=tomcat{{ tomcat_version }}-admin state={{ tomcat_pkg_state }}
tags: tomcat
- name: Install the tomcat users file

View File

@ -10,7 +10,7 @@
- name: Configure tomcat to use the standard version of the juli library
file: src=/usr/share/java/{{ item }} dest={{ tomcat_catalina_home_dir }}/bin/{{ item }} state=link
with_items:
- tomcat-juli.jar
- 'tomcat{{ tomcat_version }}-juli.jar'
notify: tomcat restart
tags: tomcat

View File

@ -1,7 +1,6 @@
---
- name: Install the tomcat packages
apt: pkg={{ item }} state={{ tomcat_pkg_state }}
with_items: '{{ tomcat_pkgs }}'
apt: pkg={{ tomcat_pkgs }} state={{ tomcat_pkg_state }}
tags: tomcat
- name: Create the tomcat tmp directory