diff options
Diffstat (limited to 'deploy/adapters/ansible/roles/setup-network/tasks/main.yml')
-rw-r--r-- | deploy/adapters/ansible/roles/setup-network/tasks/main.yml | 10 |
1 files changed, 10 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..51821b09 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'] }}" @@ -42,3 +50,5 @@ - name: add to boot scripts service: name=net_init enabled=yes + +- meta: flush_handlers |