From fd641380ad42d0c75b607b6750efbcf046b084e1 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Thu, 30 Jun 2016 19:08:06 +0800 Subject: [PATCH] Fix the upgrade haproxy failed The haproxy failed when there is one stand alone network node Closes-Bug: #1598339 Change-Id: I3390ee37eb51c292fc5149fc22b4f6a6f07da688 --- ansible/roles/haproxy/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/haproxy/tasks/main.yml b/ansible/roles/haproxy/tasks/main.yml index b017e8b4ad..0e3f30f464 100644 --- a/ansible/roles/haproxy/tasks/main.yml +++ b/ansible/roles/haproxy/tasks/main.yml @@ -1,2 +1,3 @@ --- - include: "{{ action }}.yml" + when: inventory_hostname in groups['haproxy']