I co-own a house with my ex-wife that I moved out of 6 years ago. My ex is now going to buy me out. I have been living in a rental, but will be using my portion to buy a new house. Since the current house is not my primary home, is there any way to avoid capital gains tax?