2019-07-11 10:17:02 +02:00
|
|
|
---
|
2019-12-03 11:46:36 -03:00
|
|
|
- include_tasks: logging_by_syslog.yml
|
2019-11-29 09:28:50 -03:00
|
|
|
with_items:
|
|
|
|
- docker-compose
|
|
|
|
- docker-compose-transfer
|
2021-05-09 16:34:19 +03:00
|
|
|
- docker-compose-amb
|
2020-01-20 16:53:20 -03:00
|
|
|
loop_control:
|
|
|
|
loop_var: file
|
2019-11-15 17:31:13 -03:00
|
|
|
|
2021-09-18 13:42:29 +03:00
|
|
|
- name: Set the oracle's containers local logs configuration file
|
2019-05-08 13:51:56 +02:00
|
|
|
template:
|
2019-07-09 17:00:12 +02:00
|
|
|
src: 31-oracle-docker.conf.j2
|
|
|
|
dest: /etc/rsyslog.d/31-oracle-docker.conf
|
2019-05-08 13:51:56 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
2019-05-20 14:09:53 +03:00
|
|
|
mode: 0644
|
2019-05-08 13:51:56 +02:00
|
|
|
|
2021-09-18 13:42:29 +03:00
|
|
|
- name: Set the redis container local logs configuration file
|
|
|
|
template:
|
|
|
|
src: 32-redis-docker.conf.j2
|
|
|
|
dest: /etc/rsyslog.d/32-redis-docker.conf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
|
|
|
|
- name: Set the rabbit MQ container local logs configuration file
|
|
|
|
template:
|
|
|
|
src: 33-rabbit-docker.conf.j2
|
|
|
|
dest: /etc/rsyslog.d/33-rabbit-docker.conf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
|
2019-05-08 13:51:56 +02:00
|
|
|
- name: Set the log configuration file to send container logs to remote server
|
|
|
|
template:
|
2019-07-09 17:00:12 +02:00
|
|
|
src: 36-oracle-remote-logging.conf.j2
|
|
|
|
dest: /etc/rsyslog.d/36-oracle-remote-logging.conf
|
2019-05-08 13:51:56 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
2019-05-20 14:09:53 +03:00
|
|
|
mode: 0644
|
2019-05-08 13:51:56 +02:00
|
|
|
when: syslog_server_port is defined
|
|
|
|
|
|
|
|
- name: Discarding unwanted messages in rsyslog
|
|
|
|
blockinfile:
|
|
|
|
path: /etc/rsyslog.conf
|
|
|
|
insertbefore: "# Where to place spool and state files"
|
|
|
|
marker: "#{mark} add string to discarding unwanted messages"
|
2019-09-13 09:11:38 +02:00
|
|
|
content: ':msg, contains, "ORACLE_VALIDATOR_ADDRESS_PRIVATE_KEY" ~'
|
2019-05-20 14:09:53 +03:00
|
|
|
notify: restart rsyslog
|