diff options
Diffstat (limited to 'deploy/adapters/ansible/roles/neutron-controller')
-rw-r--r-- | deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml b/deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml index 2c6891f3..018bea9a 100644 --- a/deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml +++ b/deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml @@ -20,16 +20,12 @@ - neutron_config - neutron -- name: fix openstack neutron plugin config file - shell: | - sed -i 's,plugins/ml2/openvswitch_agent.ini,plugin.ini,g' /usr/lib/systemd/system/neutron-openvswitch-agent.service - systemctl daemon-reload - when: ansible_os_family == 'RedHat' - - 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 |