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
This commit is contained in:
Gnanasekar Velu 2017-01-27 20:10:06 -08:00
parent 9e6e9abee7
commit 8ae4e7b6b9
1 changed files with 2 additions and 0 deletions

View File

@ -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: