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/setup-network | |
parent | 0bf472e8826fe526516b141b124bc7b77cbd9541 (diff) | |
parent | d31ab14e9c9fb8cb715fea4a468c71ae8b11dc5e (diff) |
Merge "disable NetworkManager on centos"
Diffstat (limited to 'deploy/adapters/ansible/roles/setup-network')
-rw-r--r-- | deploy/adapters/ansible/roles/setup-network/tasks/main.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/setup-network/tasks/main.yml b/deploy/adapters/ansible/roles/setup-network/tasks/main.yml index 818ac57a..6f024f18 100644 --- a/deploy/adapters/ansible/roles/setup-network/tasks/main.yml +++ b/deploy/adapters/ansible/roles/setup-network/tasks/main.yml @@ -1,4 +1,12 @@ --- +- name: disable NetworkManager + service: name=NetworkManager state=stopped enabled=no + when: ansible_os_family == 'RedHat' + +- name: enable network service + service: name=network state=started enabled=yes + when: ansible_os_family == 'RedHat' + - name: add ovs bridge openvswitch_bridge: bridge={{ item["name"] }} state=present with_items: "{{ network_cfg['provider_net_mappings'] }}" |