Finish reverting a broken commit in #5679

This chunk of reverting missed the docs: https://github.com/ansible/ansible/commit/b73cddc48583b5fc4a42028385ac422c0f3d7305