install-docker: move rsyslog handler earlier
This syslog configuration is what sends any logs with a program-name of "docker-<foo>" to /var/log/containers/foo.log. However, at 98- level the rules are after the default 50- rules, so we're seeing the logs copied to both syslog and /var/log/containers. Since this contains a "stop" command, we should move this earlier before the default rules and the docker logs will not be duplicated. Change-Id: I0cbcd4694a4796573fe48383756be03597d2da0f
This commit is contained in:
parent
a240a2e23a
commit
3303199ba6
playbooks/roles/install-docker
@ -41,9 +41,14 @@
|
||||
state: present
|
||||
executable: pip3
|
||||
|
||||
- name: Remove incorrect rsyslog redirector
|
||||
file:
|
||||
state: absent
|
||||
path: /etc/rsyslog.d/98-docker.conf
|
||||
|
||||
- name: Install rsyslog redirector for container tags
|
||||
copy:
|
||||
src: '98-docker.conf'
|
||||
src: '10-docker.conf'
|
||||
dest: /etc/rsyslog.d/
|
||||
owner: root
|
||||
group: root
|
||||
|
Loading…
x
Reference in New Issue
Block a user