소스 검색

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

panda 1 년 전
부모
커밋
1509f57513
1개의 변경된 파일14개의 추가작업 그리고 1개의 파일을 삭제
  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