aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-09-07 23:59:35 +0000
committerGerrit Code Review <review@openstack.org>2015-09-07 23:59:35 +0000
commit3a6332411d35251b71d5534d346c98750e88589c (patch)
treeefd9a80d26e62a43b7f39dd8a3a44322c0addf87
parent766d07e41ecc8988141eda5c67cb294352736094 (diff)
parentc68c9d95fca6485c79a607b3716a88e284c7a64e (diff)
downloadkolla-3a6332411d35251b71d5534d346c98750e88589c.tar.gz
kolla-3a6332411d35251b71d5534d346c98750e88589c.zip
Merge "Gather facts from the hosts before using them"
-rwxr-xr-xansible/roles/haproxy/tasks/main.yml2
-rwxr-xr-xansible/site.yml2
2 files changed, 3 insertions, 1 deletions
diff --git a/ansible/roles/haproxy/tasks/main.yml b/ansible/roles/haproxy/tasks/main.yml
index 1f16915ad..ab9215b16 100755
--- a/ansible/roles/haproxy/tasks/main.yml
+++ b/ansible/roles/haproxy/tasks/main.yml
@@ -1,4 +1,6 @@
---
- include: config.yml
+ when: inventory_hostname in groups['haproxy']
- include: start.yml
+ when: inventory_hostname in groups['haproxy']
diff --git a/ansible/site.yml b/ansible/site.yml
index 2be2ce7ff..99b09f288 100755
--- a/ansible/site.yml
+++ b/ansible/site.yml
@@ -1,5 +1,5 @@
---
-- hosts: haproxy
+- hosts: [haproxy, mariadb, rabbitmq, cinder-api, glance-api, keystone, nova-api, neutron-server, swift-proxy-server]
roles:
- { role: haproxy, tags: haproxy, keepalived, when: enable_haproxy | bool }