---
- name: Restart networking
  systemd:
    name: networking.service
    state: restarted

- name: Bring all interfaces up
  shell: /usr/sbin/ifup -a
...