On the ergodic control of ensembles. (October 2019)