Fix bugs and modify to work in a cluster environment.
- Fix bug where template is created prior to install
- Fix cluster mode listen on a user defined ipaddr
- Move tasks where to where it makes more sense