Put static template block in before_restart and before_deploy