Not soldierly, not appropriate for a soldier.
His desertion was condemned as an unsoldierly act of cowardice.
In a manner that is not appropriate for a soldier.