From 0007d3325d22e27cac938aeb0cd7f914c469b5b2 Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Mon, 27 Jul 2015 10:38:35 +0000 Subject: Properly use groups throught Ansible Additionally, make each service optional witha config option allowing for extreme flexibility should the deployer want to replace a service with a non-kolla one (the database for example). Change-Id: I7b644da7cfa7e8e6b6878eb1b1aa97db830504ae Closes-Bug: #1478509 --- ansible/roles/glance/tasks/start.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ansible/roles') diff --git a/ansible/roles/glance/tasks/start.yml b/ansible/roles/glance/tasks/start.yml index 86c140722..f9534ebd8 100644 --- a/ansible/roles/glance/tasks/start.yml +++ b/ansible/roles/glance/tasks/start.yml @@ -7,6 +7,7 @@ container_name: "glance_registry" container_volumes: - "{{ node_config_directory }}/glance-registry/:/opt/kolla/glance-registry/:ro" + when: inventory_hostname in groups['glance-registry'] - include: ../../start.yml vars: @@ -16,3 +17,4 @@ container_name: "glance_api" container_volumes: - "{{ node_config_directory }}/glance-api/:/opt/kolla/glance-api/:ro" + when: inventory_hostname in groups['glance-api'] -- cgit v1.2.3