Browse Source

Update 'roles/docker_host/tasks/ubuntu.yml'

panda 1 year ago
parent
commit
1509f57513
1 changed files with 14 additions and 1 deletions
  1. 14 1
      roles/docker_host/tasks/ubuntu.yml

+ 14 - 1
roles/docker_host/tasks/ubuntu.yml

@@ -20,7 +20,20 @@
   apt:
     update_cache: yes
 
-- name: telegraf
+- name: Creates directory
+  file:
+    path: /etc/docker
+    state: directory
+
+- name: Copy file with owner and permissions
+  ansible.builtin.copy:
+    src: ../../../repo/docker_daemon.json
+    dest: /etc/docker/daemon.json
+    owner: root
+    group: root
+    mode: '0644'
+
+- name: install docker
   apt:
     pkg:
     - docker-ce