Plenty of countries allow gays to serve, and their militaries are doing fine. Please don't start flaming, but Israel allows gays to serve, and their military does just fine. The fundies wouldn't deny that.
Also, even those gay individuals who happen to be pedophiles probably wouldn't flaunt it. Just saying.