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
|
|
|
|
- docker-compose-erc-native
|
2020-01-20 16:53:20 -03:00
|
|
|
loop_control:
|
|
|
|
loop_var: file
|
2019-11-15 17:31:13 -03:00
|
|
|
|
2019-05-08 13:51:56 +02:00
|
|
|
- name: Set the local container logs configuration file
|
|
|
|
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
|
|
|
|
|
|
|
- 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
|