From 649e3d33cf63177b786a1006792cf47d7750f51c Mon Sep 17 00:00:00 2001 From: Raphael Luckom Date: Wed, 30 Oct 2019 01:24:46 -0400 Subject: [PATCH] allow setting config --- tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index f248279..56ac3b1 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -15,6 +15,12 @@ - import_tasks: docker-1809-shim.yml when: ansible_service_mgr == 'systemd' +- name: Create docker config + copy: + dest: "/etc/docker/daemon.json" + content: "{{ docker_config }}" + when: docker_config is defined + - name: Ensure Docker is started and enabled at boot. service: name: docker