debian.yml 692 B

1234567891011121314151617
  1. - name: Install network config
  2. when: supernode_interfaces is defined
  3. template: src=interfaces.j2 dest=/etc/network/interfaces
  4. register: network_template_installed
  5. # notify: Restart network
  6. - name: Install supernode specific sysctl config
  7. template: src=supernode.sysctl.j2 dest=/etc/sysctl.d/supernode.conf
  8. register: supernode_sysctl_installed
  9. - name: Load sysctl variables
  10. when: supernode_sysctl_installed|changed
  11. shell: sysctl -p /etc/sysctl.d/supernode.conf || true
  12. - name: Restart network
  13. when: network_template_installed|changed
  14. shell: "ifdown --exclude=lo --exclude={{supernode_public_interface}} -a && ifup --exclude=lo --exclude={{supernode_public_interface}} -a"