As always, baring one's head to the sun corresponds to the loss of sheltering illusion. In this case the gesture is made "formally," reflecting the humorous speech in which he deliberately tries to disillusion the soldiers as to their "virtue."