12345678910111213141516171819 |
- ---
- - name: configure NetworkManager
- lineinfile:
- dest: "/etc/sysconfig/network-scripts/ifcfg-{{ ansible_default_ipv4['interface'] }}"
- regexp: '^{{ item }}='
- line: '{{ item }}=yes'
- state: present
- create: yes
- with_items:
- - 'USE_PEERDNS'
- - 'NM_CONTROLLED'
- - name: enable and start NetworkManager
- service:
- name: NetworkManager
- state: restarted
- enabled: yes
- # TODO(shadower): add the flannel interface tasks from post-provision-openstack.yml
|