diff --git a/roles/docker_host/tasks/ubuntu.yml b/roles/docker_host/tasks/ubuntu.yml index 103a4f0..856456b 100644 --- a/roles/docker_host/tasks/ubuntu.yml +++ b/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