From 3d0ffb6edbd42d8b663bb268374101f44b6d2e36 Mon Sep 17 00:00:00 2001 From: Michael Gugino Date: Thu, 5 Oct 2017 16:30:29 -0400 Subject: Ensure docker is restarted when iptables is restarted Currently, os_firewall role may run after docker role, and iptables.service may be restarted. When restarted, this negatively impacts docker's iptables rules. This commit ensures that if iptables is restarted, docker is restarted as well (by systemd) Fixes: https://github.com/openshift/origin/issues/16709 --- roles/docker/handlers/main.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'roles/docker/handlers') diff --git a/roles/docker/handlers/main.yml b/roles/docker/handlers/main.yml index 591367467..866ed0452 100644 --- a/roles/docker/handlers/main.yml +++ b/roles/docker/handlers/main.yml @@ -4,6 +4,7 @@ systemd: name: "{{ openshift.docker.service_name }}" state: restarted + daemon_reload: yes register: r_docker_restart_docker_result until: not r_docker_restart_docker_result | failed retries: 3 -- cgit v1.2.3