I am selling my house. Can be exempt from Capital Gains Tax? I bought that house while active, but am now retired.

Reading the IRS section about military exemption and I cannot figure out how it works for recent retirees.