diff options
author | carey.xu <carey.xuhan@huawei.com> | 2015-10-13 23:49:44 +0800 |
---|---|---|
committer | carey.xu <carey.xuhan@huawei.com> | 2015-10-13 23:49:44 +0800 |
commit | a682e18d16a7e8862bd0e10882cbe1f197973d3b (patch) | |
tree | 38d55e28f6b0ca4108326050d5533b0084874f7e /deploy/adapters/ansible/roles/neutron-controller | |
parent | cb004d80668a6bf63e208e81bf3c4fa86d889dcf (diff) |
bugfix: generate config file error
JIRA: COMPASS-95
Change-Id: I223e8afbb909be72937f159d766817803b3c2ab6
Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/neutron-controller')
-rw-r--r-- | deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml | 1 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/neutron-controller/tasks/neutron_config.yml | 2 |
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 |