main.yml 336 B

123456789101112
  1. ---
  2. # handlers file for ff-supernode
  3. # In Ubuntu restarting the networking service causes problems.
  4. # So we use ifdown and ifup to enable changes
  5. - name: Restart network
  6. shell: ifdown --exclude=lo -a && ifup --exclude=lo -a
  7. - name: Restart supervisor
  8. service: name=supervisor state=restarted
  9. - name: Reboot machine
  10. shell: reboot