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/tasks/package_docker.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'roles/docker/tasks') diff --git a/roles/docker/tasks/package_docker.yml b/roles/docker/tasks/package_docker.yml index eab5c3bb1..dbe0b0d28 100644 --- a/roles/docker/tasks/package_docker.yml +++ b/roles/docker/tasks/package_docker.yml @@ -48,7 +48,9 @@ template: dest: "{{ docker_systemd_dir }}/custom.conf" src: custom.conf.j2 - when: not os_firewall_use_firewalld | default(False) | bool + notify: + - restart docker + when: not (os_firewall_use_firewalld | default(False)) | bool - name: Add enterprise registry, if necessary set_fact: -- cgit v1.2.3