Added neww tasks for ha and modifed ha template files.