ansible: clean up formula, fix system Python use.

Closes #22307.