summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/neutron-controller
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2015-10-15 01:41:47 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-10-15 01:41:48 +0000
commit76344ea62126a46ab6fcc2c729b52575ecfc24a4 (patch)
treed78597dafc6032f8b652d9762ac9df69d7fda144 /deploy/adapters/ansible/roles/neutron-controller
parent252206f17671d3383a9f5dfe06e6f4ee13b00e90 (diff)
parenta682e18d16a7e8862bd0e10882cbe1f197973d3b (diff)
Merge "bugfix: generate config file error"
Diffstat (limited to 'deploy/adapters/ansible/roles/neutron-controller')
-rw-r--r--deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml1
-rw-r--r--deploy/adapters/ansible/roles/neutron-controller/tasks/neutron_config.yml2
2 files changed, 1 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml b/deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml
index 5b3640d7..5825c5fe 100644
--- a/deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml
@@ -6,6 +6,7 @@
- neutron
- include: neutron_config.yml
+ when: inventory_hostname == groups['controller'][0]
tags:
- config
- neutron_config
diff --git a/deploy/adapters/ansible/roles/neutron-controller/tasks/neutron_config.yml b/deploy/adapters/ansible/roles/neutron-controller/tasks/neutron_config.yml
index 26758f58..3912752b 100644
--- a/deploy/adapters/ansible/roles/neutron-controller/tasks/neutron_config.yml
+++ b/deploy/adapters/ansible/roles/neutron-controller/tasks/neutron_config.yml
@@ -11,10 +11,8 @@
- name: restart first neutron-server
service: name=neutron-server state=restarted enabled=yes
- when: inventory_hostname == groups['controller'][0]
- name: restart other neutron-server
service: name=neutron-server state=restarted enabled=yes
- when: inventory_hostname != groups['controller'][0]
- meta: flush_handlers