forked from ISTI-ansible-roles/ansible-roles
dnet-eagle/group_vars/eagle_ws_devel: Use logstash as log target.
This commit is contained in:
parent
44233dd5f7
commit
ab0915ab32
|
@ -6,8 +6,10 @@
|
||||||
when:
|
when:
|
||||||
- tomcat_jmx_enabled
|
- tomcat_jmx_enabled
|
||||||
- tomcat_jmx_auth_enabled
|
- tomcat_jmx_auth_enabled
|
||||||
|
tags: [ 'tomcat', 'jmx' ]
|
||||||
- include: tomcat-log4j-logging.yml
|
- include: tomcat-log4j-logging.yml
|
||||||
when: tomcat_use_log4j
|
when: tomcat_use_log4j
|
||||||
|
tags: [ 'tomcat', 'tomcat_log4j' ]
|
||||||
- include: tomcat-logger-logging.yml
|
- include: tomcat-logger-logging.yml
|
||||||
when: not tomcat_use_log4j
|
when: not tomcat_use_log4j
|
||||||
- include: access_log.yml
|
- include: access_log.yml
|
||||||
|
|
|
@ -4,19 +4,13 @@
|
||||||
when:
|
when:
|
||||||
- tomcat_jmx_enabled
|
- tomcat_jmx_enabled
|
||||||
- tomcat_jmx_auth_enabled
|
- tomcat_jmx_auth_enabled
|
||||||
notify:
|
notify: tomcat restart
|
||||||
- tomcat restart
|
tags: [ 'tomcat', 'jmx' ]
|
||||||
tags:
|
|
||||||
- tomcat
|
|
||||||
- jmx
|
|
||||||
|
|
||||||
- name: Distribute the jmx role file
|
- name: Distribute the jmx role file
|
||||||
copy: src=jmxremote.access dest={{ tomcat_jmx_auth_dir }}/jmxremote.access owner=root mode=0644
|
copy: src=jmxremote.access dest={{ tomcat_jmx_auth_dir }}/jmxremote.access owner=root mode=0644
|
||||||
when:
|
when:
|
||||||
- tomcat_jmx_enabled
|
- tomcat_jmx_enabled
|
||||||
- tomcat_jmx_auth_enabled
|
- tomcat_jmx_auth_enabled
|
||||||
notify:
|
notify: tomcat restart
|
||||||
- tomcat restart
|
tags: [ 'tomcat', 'jmx' ]
|
||||||
tags:
|
|
||||||
- tomcat
|
|
||||||
- jmx
|
|
||||||
|
|
|
@ -2,52 +2,40 @@
|
||||||
# Manage tomcat internal logs with log4j
|
# Manage tomcat internal logs with log4j
|
||||||
- name: Install log4j
|
- name: Install log4j
|
||||||
apt: pkg=liblog4j1.2-java state={{ tomcat_pkg_state }}
|
apt: pkg=liblog4j1.2-java state={{ tomcat_pkg_state }}
|
||||||
notify:
|
notify: tomcat restart
|
||||||
tomcat restart
|
tags: [ 'tomcat', 'tomcat_log4j' ]
|
||||||
tags:
|
|
||||||
- tomcat
|
|
||||||
|
|
||||||
- name: Install tomcat-juli-adapters
|
- name: Install tomcat-juli-adapters
|
||||||
copy: src=tomcat{{ tomcat_version }}-juli-adapters.jar dest=/usr/share/java/tomcat-juli-adapters.jar
|
copy: src=tomcat{{ tomcat_version }}-juli-adapters.jar dest=/usr/share/java/tomcat-juli-adapters.jar
|
||||||
tags:
|
tags: [ 'tomcat', 'tomcat_log4j' ]
|
||||||
- tomcat
|
|
||||||
|
|
||||||
- name: Install tomcat-juli
|
- name: Install tomcat-juli
|
||||||
copy: src=tomcat{{ tomcat_version }}-juli-log4j.jar dest=/usr/share/java/tomcat-juli-log4j.jar
|
copy: src=tomcat{{ tomcat_version }}-juli-log4j.jar dest=/usr/share/java/tomcat-juli-log4j.jar
|
||||||
tags:
|
tags: [ 'tomcat', 'tomcat_log4j' ]
|
||||||
- tomcat
|
|
||||||
|
|
||||||
- name: Configure tomcat to use the log4j system library
|
- name: Configure tomcat to use the log4j system library
|
||||||
file: src=/usr/share/java/{{ item }} dest={{ tomcat_catalina_home_dir }}/lib/{{ item }} state=link
|
file: src=/usr/share/java/{{ item }} dest={{ tomcat_catalina_home_dir }}/lib/{{ item }} state=link
|
||||||
with_items:
|
with_items:
|
||||||
- log4j-1.2.jar
|
- log4j-1.2.jar
|
||||||
- tomcat-juli-adapters.jar
|
- tomcat-juli-adapters.jar
|
||||||
notify:
|
notify: tomcat restart
|
||||||
tomcat restart
|
tags: [ 'tomcat', 'tomcat_log4j' ]
|
||||||
tags:
|
|
||||||
- tomcat
|
|
||||||
|
|
||||||
- name: Configure tomcat to use the log4j version of the juli library
|
- name: Configure tomcat to use the log4j version of the juli library
|
||||||
file: src=/usr/share/java/{{ item }} dest={{ tomcat_catalina_home_dir }}/bin/tomcat-juli.jar state=link
|
file: src=/usr/share/java/{{ item }} dest={{ tomcat_catalina_home_dir }}/bin/tomcat-juli.jar state=link
|
||||||
with_items:
|
with_items:
|
||||||
- tomcat-juli-log4j.jar
|
- tomcat-juli-log4j.jar
|
||||||
notify:
|
notify: tomcat restart
|
||||||
tomcat restart
|
tags: [ 'tomcat', 'tomcat_log4j' ]
|
||||||
tags:
|
|
||||||
- tomcat
|
|
||||||
|
|
||||||
- name: Install log4j.properties
|
- name: Install log4j.properties
|
||||||
template: src=log4j.properties.j2 dest={{ tomcat_catalina_home_dir }}/lib/log4j.properties mode=0644 owner=root group=root
|
template: src=log4j.properties.j2 dest={{ tomcat_catalina_home_dir }}/lib/log4j.properties mode=0644 owner=root group=root
|
||||||
when: tomcat_install_the_log4j_properties
|
when: tomcat_install_the_log4j_properties
|
||||||
notify:
|
notify: tomcat restart
|
||||||
tomcat restart
|
tags: [ 'tomcat', 'tomcat_log4j' ]
|
||||||
tags:
|
|
||||||
- tomcat
|
|
||||||
|
|
||||||
- name: Remove logging.properties
|
- name: Remove logging.properties
|
||||||
file: dest=/etc/tomcat{{ tomcat_version }}/logging.properties state=absent
|
file: dest=/etc/tomcat{{ tomcat_version }}/logging.properties state=absent
|
||||||
notify:
|
notify: tomcat restart
|
||||||
tomcat restart
|
tags: [ 'tomcat', 'tomcat_log4j' ]
|
||||||
tags:
|
|
||||||
- tomcat
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue