tokenbridge/deployment/roles/common/tasks/logging.yml
Przemyslaw Rzad 1da1acbfbe
Yaml and Ansible linting in Molecule (#141)
* Removed old ansible-lint outside of molecule

* Yamlint

* Enabled ansible-lint with minimal rules

* Removed ansible-lint job
2019-07-11 10:17:02 +02:00

31 lines
690 B
YAML

---
- name: Set the local docker logs configuration file
template:
src: 30-docker.conf.j2
dest: /etc/rsyslog.d/30-docker.conf
owner: root
group: root
mode: 0644
- name: Set the log configuration file to send docker logs to remote server
template:
src: 35-docker-remote-logging.conf.j2
dest: /etc/rsyslog.d/35-docker-remote-logging.conf
owner: root
group: root
mode: 0644
when: syslog_server_port is defined
- name: Set the logrotate config file
template:
src: docker-logs.j2
dest: /etc/logrotate.d/docker-logs
owner: root
group: root
mode: 0644
- name: restart rsyslog
service:
name: rsyslog
state: restarted