UPDATE ......Confluence has now been updated to version 9.2.6. Please see following page for details and feedback about changes:
Updates
...
This allows you to isolate a complete python environment, and install a specific version of Ansible. With help of some bash aliases this can be conveniently automated.
Assuming you have the required tools available, install this in your home directory:
...