From 4c27bd0d419287ef4f9c52012411f2ad748dd31f Mon Sep 17 00:00:00 2001 From: Eduardo Gonzalez Date: Fri, 31 Mar 2017 12:51:54 +0100 Subject: [PATCH] Fix Haproxy reconfigure HAproxy always restart containers when doing reconfigure. compare_container not evaluate privileged while the containers are privileged. compare_container always evaluates true because of this. Closes-Bug: #1678122 Change-Id: Iaea80c1e09ef16a6d2530a75e6f37e6259bb4ca7 --- ansible/roles/haproxy/tasks/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/haproxy/tasks/config.yml b/ansible/roles/haproxy/tasks/config.yml index 37663762da..f30012e5f1 100644 --- a/ansible/roles/haproxy/tasks/config.yml +++ b/ansible/roles/haproxy/tasks/config.yml @@ -88,6 +88,7 @@ name: "{{ item.value.container_name }}" image: "{{ item.value.image }}" volumes: "{{ item.value.volumes }}" + privileged: "{{ item.value.privileged | default(False) }}" register: check_haproxy_containers when: - action != "config"