----
I (insert name), having been appointed a (insert rank) in the U.S. Navy under the conditions indicated in this document, do accept such appointment and do solemnly swear (or affirm) that I will support and defend the Constitution of the United States against all enemies, foreign and domestic, that I will bear true faith and allegiance to the same; that I take this obligation freely, without any mental reservation or purpose of evasion; and that I will well and faithfully discharge the duties of the office on which I am about to enter, so help me God.
So how does this square with the military not being used here in the U.S.A., say, to guard the borders or to keep order?
The place to put it is in the oath taken by the actual people that carry the weapons.