Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Commit

Permalink
docker: disable container logs, closes #29
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
  • Loading branch information
Lars Gierth committed Sep 18, 2015
1 parent 1a68066 commit 5fc3ecd
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions solarnet/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
- hosts: all
pre_tasks:
- include_vars: secrets_plaintext/secrets.yml
handlers:
- include: roles/nginx/handlers/main.yml
roles:
- common
- docker
Expand Down
5 changes: 5 additions & 0 deletions solarnet/roles/docker/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- name: restart docker
service:
name: docker
state: restarted
16 changes: 16 additions & 0 deletions solarnet/roles/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,19 @@

- name: "create directory for containers"
file: path=/containers state=directory

# XXX migration
- lineinfile:
dest: /etc/default/docker
line: 'DOCKER_OPTS=--log-driver=none'
state: absent
notify:
- restart docker

- name: disable container logs
lineinfile:
dest: /etc/default/docker
line: 'DOCKER_OPTS="$DOCKER_OPTS --log-driver=none"'
state: present
notify:
- restart docker

0 comments on commit 5fc3ecd

Please sign in to comment.