Upgrading 1.5 to 2.0 Ubuntu

I thought about making a copy on other machine with the same specifications and try upgrade it. so what could be the best way to make a copy with all the hosts and the roles.
thanks for your help