[docker] add daemon config (dns)
This commit is contained in:
parent
7ccef2e5b1
commit
8be9398afa
6
roles/docker/files/daemon.json
Normal file
6
roles/docker/files/daemon.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"dns": [
|
||||
"46.182.19.48",
|
||||
"74.82.42.42"
|
||||
]
|
||||
}
|
|
@ -1,3 +1,8 @@
|
|||
---
|
||||
- name: update-grub
|
||||
shell: update-grub
|
||||
|
||||
- name: restart-docker
|
||||
systemd:
|
||||
name: docker
|
||||
state: restarted
|
||||
|
|
6
roles/docker/tasks/config.yml
Normal file
6
roles/docker/tasks/config.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
- name: add docker configuration
|
||||
copy:
|
||||
dest: /etc/docker/daemon.json
|
||||
src: daemon.json
|
||||
notify: restart-docker
|
|
@ -6,3 +6,7 @@
|
|||
- import_tasks: kernel.yml
|
||||
tags:
|
||||
- docker:kernel
|
||||
|
||||
- import_tasks: config.yml
|
||||
tags:
|
||||
- docker:config
|
||||
|
|
Reference in a new issue