]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
container-host: restart docker service 597/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 7 Dec 2020 17:05:17 +0000 (18:05 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 7 Dec 2020 17:05:17 +0000 (18:05 +0100)
Once the mirror has been added in `/etc/docker/daemon.json`
we need to restart the daemon.

This is not very elegant but it's a workaround for now.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/container-host/tasks/container_mirror.yml

index 5bc0c125184057db93c2f02271c4dbec29b2c62d..1a6877b95357642acab5ebcfc03114f87ba14a13 100644 (file)
@@ -35,3 +35,9 @@
   command: registries-conf-ctl add-mirror docker.io "{{ container_mirror }}"
   environment:
     PATH: /usr/local/bin:/usr/bin
+
+# not very elegant but it's a workaround for now
+- name: Restart docker service
+  service: docker
+    state: restarted
+  when: "'docker.io' in container_packages"