ansible-role-python3-default This role sets python3 as default python using update-alternatives. If you are using ubuntu you can just install the package python-is-python3 but when this is not possible the next best solution is setting it using update-alternatives.