diff options
author | shuai chen <chenshuai@huawei.com> | 2015-12-15 10:48:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-12-15 10:48:10 +0000 |
commit | 25cf6081b5cef33aec03fe76093dd7b87d11c249 (patch) | |
tree | 848a6ba02e920e8a1b87ab2a34ca048232efee7a /deploy/adapters/ansible/roles/neutron-network/tasks/main.yml | |
parent | 0bf472e8826fe526516b141b124bc7b77cbd9541 (diff) | |
parent | d31ab14e9c9fb8cb715fea4a468c71ae8b11dc5e (diff) |
Merge "disable NetworkManager on centos"
Diffstat (limited to 'deploy/adapters/ansible/roles/neutron-network/tasks/main.yml')
-rw-r--r-- | deploy/adapters/ansible/roles/neutron-network/tasks/main.yml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/deploy/adapters/ansible/roles/neutron-network/tasks/main.yml b/deploy/adapters/ansible/roles/neutron-network/tasks/main.yml index f8e9e8c4..fc1bc638 100644 --- a/deploy/adapters/ansible/roles/neutron-network/tasks/main.yml +++ b/deploy/adapters/ansible/roles/neutron-network/tasks/main.yml @@ -36,7 +36,7 @@ with_items: packages | union(packages_noarch) - name: generate neutron network service list - shell: echo {{ item }} >> /opt/service + lineinfile: dest=/opt/service create=yes line='{{ item }}' with_items: services | union(services_noarch) - name: fix openstack neutron plugin config file @@ -82,7 +82,8 @@ - include: odl.yml when: "'opendaylight' in {{ NEUTRON_MECHANISM_DRIVERS }}" -- name: restart neutron services - debug: msg="restart neutron services" - notify: - - restart neutron network relation service +- name: restart neutron network relation service + service: name={{ item }} state=restarted enabled=yes + with_flattened: + - services_noarch + - services |