diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-09-07 23:59:35 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-09-07 23:59:35 +0000 |
| commit | 3a6332411d35251b71d5534d346c98750e88589c (patch) | |
| tree | efd9a80d26e62a43b7f39dd8a3a44322c0addf87 | |
| parent | 766d07e41ecc8988141eda5c67cb294352736094 (diff) | |
| parent | c68c9d95fca6485c79a607b3716a88e284c7a64e (diff) | |
| download | kolla-3a6332411d35251b71d5534d346c98750e88589c.tar.gz kolla-3a6332411d35251b71d5534d346c98750e88589c.zip | |
Merge "Gather facts from the hosts before using them"
| -rwxr-xr-x | ansible/roles/haproxy/tasks/main.yml | 2 | ||||
| -rwxr-xr-x | ansible/site.yml | 2 |
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 } |
