[docker] add daemon config (dns)

master
Simon Bruder 2019-05-05 11:34:01 +00:00
parent 7ccef2e5b1
commit 8be9398afa
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
4 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,6 @@
{
"dns": [
"46.182.19.48",
"74.82.42.42"
]
}

View File

@ -1,3 +1,8 @@
---
- name: update-grub
shell: update-grub
- name: restart-docker
systemd:
name: docker
state: restarted

View File

@ -0,0 +1,6 @@
---
- name: add docker configuration
copy:
dest: /etc/docker/daemon.json
src: daemon.json
notify: restart-docker

View File

@ -6,3 +6,7 @@
- import_tasks: kernel.yml
tags:
- docker:kernel
- import_tasks: config.yml
tags:
- docker:config