Installation toolkit setup command fails after upgrade to Ubuntu 22.04

The installation toolkit setup command might fail after the upgrade to Ubuntu 22.04.

  File "/usr/local/bin/ansible", line 34, in <module>
    from ansible import context
ModuleNotFoundError: No module named 'ansible'
[ FATAL ] Ansible is not installed on test-41.openstacklocal, Please install the required Ansible version 2.9.15 then continue.

The error occurs because the Ansible package might get removed after the upgrade to Ubuntu 22.04.

Resolve this issue as follows.
  1. Manually install Ansible 2.9.15.
    pip3 install ansible==2.9.15
  2. Retry the installation by using the installation toolkit.