Not a pilot but advice from someone who moved over a dozen times in 22+ years...
Renting is always a safe option. You have no idea what the housing market will be when you leave in 1-2 years. You certainly don't want to be strapped with 2 mortgages. Just be sure to get your "military clause" included in your contract.
Keep in mind, the housing market could be mush when you are up for the next move.
Just my $.02.
Caution: The author of this post is a product of the US public education system.
<!-- Edit -->