node-network.yml 481 B

12345678910111213141516171819
  1. ---
  2. - name: configure NetworkManager
  3. lineinfile:
  4. dest: "/etc/sysconfig/network-scripts/ifcfg-{{ ansible_default_ipv4['interface'] }}"
  5. regexp: '^{{ item }}='
  6. line: '{{ item }}=yes'
  7. state: present
  8. create: yes
  9. with_items:
  10. - 'USE_PEERDNS'
  11. - 'NM_CONTROLLED'
  12. - name: enable and start NetworkManager
  13. service:
  14. name: NetworkManager
  15. state: restarted
  16. enabled: yes
  17. # TODO(shadower): add the flannel interface tasks from post-provision-openstack.yml