The Python 2 yum module is needed for this module] centos 7

When run :
sudo python3 install.py --develop --site erp.anas.com --user anas --bench-name bench --verbose
ERROR :
TASK [common : include_tasks] ******************************************************
task path: /tmp/.bench/playbooks/roles/common/tasks/main.yml:7
included: /tmp/.bench/playbooks/roles/common/tasks/redhat_family.yml for localhost

TASK [common : Install IUS repo for python 3.6] ************************************
task path: /tmp/.bench/playbooks/roles/common/tasks/redhat_family.yml:3
Running yum as the backend for the yum action plugin
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c ‘echo ~root && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp/ansible-tmp-1629646370.114959-238882308154777” && echo ansible-tmp-1629646370.114959-238882308154777="echo /root/.ansible/tmp/ansible-tmp-1629646370.114959-238882308154777" ) && sleep 0’
Using module file /usr/local/lib/python3.6/site-packages/ansible/modules/packaging/os/yum.py
<127.0.0.1> PUT /root/.ansible/tmp/ansible-local-26539sgg83lfl/tmpuye_fz1c TO /root/.ansible/tmp/ansible-tmp-1629646370.114959-238882308154777/AnsiballZ_yum.py
<127.0.0.1> EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1629646370.114959-238882308154777/ /root/.ansible/tmp/ansible-tmp-1629646370.114959-238882308154777/AnsiballZ_yum.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘/bin/python3 /root/.ansible/tmp/ansible-tmp-1629646370.114959-238882308154777/AnsiballZ_yum.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘rm -f -r /root/.ansible/tmp/ansible-tmp-1629646370.114959-238882308154777/ > /dev/null 2>&1 && sleep 0’
fatal: [localhost]: FAILED! => {
“changed”: false,
“invocation”: {
“module_args”: {
“allow_downgrade”: false,
“autoremove”: false,
“bugfix”: false,
“conf_file”: null,
“disable_excludes”: null,
“disable_gpg_check”: false,
“disable_plugin”: [],
“disablerepo”: [],
“download_dir”: null,
“download_only”: false,
“enable_plugin”: [],
“enablerepo”: [],
“exclude”: [],
“install_repoquery”: true,
“install_weak_deps”: true,
“installroot”: “/”,
“list”: null,
“lock_timeout”: 30,
“name”: [
https://repo.ius.io/ius-release-el7.rpm
],
“releasever”: null,
“security”: false,
“skip_broken”: false,
“state”: “present”,
“update_cache”: false,
“update_only”: false,
“use_backend”: “auto”,
“validate_certs”: true
}
},
“msg”: “The Python 2 yum module is needed for this module. If you require Python 3 support use the dnf Ansible module instead.”
}

PLAY RECAP *************************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0

Traceback (most recent call last):
File “install.py”, line 437, in
install_bench(args)
File “install.py”, line 241, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 362, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’), stdout=log_stream, stderr=sys.stderr)
File “/usr/lib64/python3.6/subprocess.py”, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-vvvv’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=anas’]’ returned non-zero exit status 2.