This is just nonsense.

Section 81(1) of the Armed Forces Act criminalises this. Along with 214+ Criminal Code, 284+ Penal Code, 2-3 Same Sex Marriage (Prohibition) Act and several state Sharia laws.

But homophobia scores points, so they will keep banning LGBT folks every year.