[docker] add daemon config (dns)

This commit is contained in:
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