debian.yml 349 B

123456789
  1. - name: Install network config
  2. when: supernode_interfaces is defined
  3. template: src=interfaces.j2 dest=/etc/network/interfaces
  4. register: networ_template_installed
  5. # notify: Restart network
  6. - name: Restart network
  7. when: networ_template_installed|changed
  8. shell: "ifdown --exclude=lo --exclude=eth0 -a && ifup --exclude=lo --exclude=eth0 -a"