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

docker: disable container logs, closes #29 #91

Merged
1 commit merged into from
Sep 18, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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