From adf7faf93bfbd0ab8fc707fc4245fab1af717728 Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Mon, 16 Jan 2017 17:52:28 +0300 Subject: [PATCH] Always trigger docker restart when docker package changes Docker upgrade doesn't auto-restart docker, causing failures when trying to start another container --- roles/docker/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index 845f0ab35..cda74d29b 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -65,6 +65,7 @@ retries: 4 delay: "{{ retry_stagger | random + 3 }}" with_items: "{{ docker_package_info.pkgs }}" + notify: restart docker when: (not ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]) and (docker_package_info.pkgs|length > 0) - name: check minimum docker version for docker_dns mode. You need at least docker version >= 1.12 for resolvconf_mode=docker_dns