To rent your property out for up to 6 years without CGT applying upon its sale you would have to not only have no other main residence but there would need to be a reason why you are renting out your main residence. For example you have moved from Melbourne to Sydney or overseas for for work reasons and cannot then live in your main residence.