Skip to content

Commit

Permalink
Merge pull request #345 from acjohnson/master
Browse files Browse the repository at this point in the history
move docker daemon.json config
  • Loading branch information
pierrevillard committed Jun 22, 2023
2 parents 5c8d7e0 + 0baf1f9 commit 09a32d0
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions roles/install-runtimes/tasks/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
path: /usr/sbin/iptables-legacy
when: ansible_distribution|lower == 'debian'

- name: Configure /etc/docker/daemon.json
copy:
dest: /etc/docker/daemon.json
src: daemon.json
notify:
- Reload docker

- name: Install Docker for Debian lagorakube distros
include_tasks: "docker-debian-like.yaml"
when: is_debian_like
Expand All @@ -26,7 +33,6 @@
include_tasks: "docker-centos-like.yaml"
when: is_centos_like


- name: Start Runtime
systemd:
state: started
Expand All @@ -37,13 +43,6 @@
path: /etc/docker
state: directory

- name: Configure /etc/docker/daemon.json
copy:
dest: /etc/docker/daemon.json
src: daemon.json
notify:
- Reload docker

- name: Make sure docker is running
systemd:
state: started
Expand Down

0 comments on commit 09a32d0

Please sign in to comment.