From 8ae4e7b6b962c4d31e9edd995753db0a283d117b Mon Sep 17 00:00:00 2001 From: Gnanasekar Velu Date: Fri, 27 Jan 2017 20:10:06 -0800 Subject: [PATCH] Fix for installing haproxy with limit This fix is required if we rebuild a controller node and install openstack-ansible only to that host. Without this fix we need to run openstack-service against all nodes Change-Id: Ibfae2ab75cca0dcad1e36d3e54e1e7d1964517f1 Closes-Bug: 1660003 --- tasks/haproxy_ssl_key_distribute.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/haproxy_ssl_key_distribute.yml b/tasks/haproxy_ssl_key_distribute.yml index 55beb6b..3bbf8bd 100644 --- a/tasks/haproxy_ssl_key_distribute.yml +++ b/tasks/haproxy_ssl_key_distribute.yml @@ -18,6 +18,7 @@ dest: "{{ haproxy_ssl_key }}" content: "{{ hostvars[groups['haproxy_all'][0]]['haproxy_ssl_key_fact'] | b64decode }}" mode: "0640" + when: hostvars[groups['haproxy_all'][0]]['haproxy_ssl_key_fact'] is defined notify: - regen pem tags: @@ -28,6 +29,7 @@ dest: "{{ haproxy_ssl_cert }}" content: "{{ hostvars[groups['haproxy_all'][0]]['haproxy_ssl_cert_fact'] | b64decode }}" mode: "0640" + when: hostvars[groups['haproxy_all'][0]]['haproxy_ssl_cert_fact'] is defined notify: - regen pem tags: