Help with community.zabbix.zabbix_agent role

Hi guys!!
I’m trying to use the zabbix_agent role to install zabbix package on the given version zabbix-agent-6.0.7-1.el7.x86_64.rpm

ANSIBLE VERSION
[van@aap zabbix]$ ansible --version
ansible [core 2.14.4]
  config file = /home/van/roles/zabbix/ansible.cfg
  configured module search path = ['/home/van/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.9/site-packages/ansible
  ansible collection location = /home/van/.ansible/collections/ansible_collections
  executable location = /usr/bin/ansible
  python version = 3.9.10 (main, Sep 23 2022, 00:00:00) [GCC 11.2.1 20220127 (Red Hat 11.2.1-9)] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = True
CONFIGURATION
COLLECTIONS_PATHS(/home/van/roles/zabbix/ansible.cfg) = ['/home/van/.ansible/collections/ansible_collections']
CONFIG_FILE() = /home/van/roles/zabbix/ansible.cfg
DEFAULT_HOST_LIST(/home/van/roles/zabbix/ansible.cfg) = ['/home/van/roles/zabbix/hosts']
OS / ENVIRONMENT / Zabbix Version
[root@node ~]# cat /etc/*release*
NAME="Red Hat Enterprise Linux Server"
VERSION="7.9 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.9"
PRETTY_NAME="Red Hat Enterprise Linux"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.9:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.9
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.9"
Red Hat Enterprise Linux Server release 7.9 (Maipo)
Red Hat Enterprise Linux Server release 7.9 (Maipo)
cpe:/o:redhat:enterprise_linux:7.9:ga:server

Zabbix version 6.0

---

- hosts: all
  tasks:

  roles:
    - community.zabbix.zabbix_agent

  vars_files:
    - /home/van/roles/zabbix/vars/main.yaml

vars/main.yaml

zabbix_agent_version: 6.0
zabbix_agent_version_minor: 7-1*
zabbix_agent_package_state: present
zabbix_agent_disable_repo: epel
zabbix_agent(2)_pidfile: /var/run/zabbix/zabbix_agentd.pid
zabbix_agent(2)_logtype: file
zabbix_agent(2)_logfile: /var/log/zabbix/zabbix_agentd.log
zabbix_agent(2)_logfilesize: 1024
zabbix_agent(2)_debuglevel: 3
zabbix_agent_enableremotecommands: 0
zabbix_agent_logremotecommands: 0
zabbix_agent(2)_listenport: 10050
zabbix_agent(2)_listenip: 0.0.0.0
zabbix_agent_startagents: 3
zabbix_agent(2)_hostname: system.hostname
zabbix_agent(2)_hostnameitem: system.hostname
zabbix_agent(2)_refreshactivechecks: 120
zabbix_agent(2)_buffersend: 5
zabbix_agent(2)_buffersize: 100
zabbix_agent_maxlinespersecond: 20
zabbix_agent(2)_timeout: 3
zabbix_agent_allowroot: 0
zabbix_agent(2)_include: /etc/zabbix/zabbix_agentd.d/*.conf
zabbix_agent(2)_unsafeuserparameters: 0
zabbix_agent(2)_tlsconnect: unencrypted
zabbix_agent(2)_tlsaccept: unencrypted
EXPECTED RESULTS

The agent to be installed on version 6.0.7-1
But i only got error message "msg": "Failure talking to yum: Error getting repository data for epel, repository not found"
And when i check the machine where the automation runs the repo that was enabled doesn’t have the agent on the version i need

[root@node ~]# yum list available --disablerepo="*" --enablerepo=zabbix
Plugins carregados: langpacks, product-id, search-disabled-repos, subscription-
                  : manager
Pacotes disponíveis
zabbix-agent.x86_64                           6.4.13-release1.el7        zabbix
zabbix-agent2.x86_64                          6.4.13-release1.el7        zabbix
zabbix-agent2-plugin-mongodb.x86_64           6.4.13-release1.el7        zabbix
zabbix-agent2-plugin-mssql.x86_64             6.4.13-release1.el7        zabbix
zabbix-agent2-plugin-postgresql.x86_64        6.4.13-release1.el7        zabbix
zabbix-get.x86_64                             6.4.13-release1.el7        zabbix
zabbix-java-gateway.x86_64                    6.4.13-release1.el7        zabbix
zabbix-js.x86_64                              6.4.13-release1.el7        zabbix
zabbix-proxy-mysql.x86_64                     6.4.13-release1.el7        zabbix
zabbix-proxy-pgsql.x86_64                     6.4.13-release1.el7        zabbix
zabbix-proxy-sqlite3.x86_64                   6.4.13-release1.el7        zabbix
zabbix-release.noarch                         6.4-1.el7                  zabbix
zabbix-selinux-policy.x86_64                  6.4.13-release1.el7        zabbix
zabbix-sender.x86_64                          6.4.13-release1.el7        zabbix
zabbix-sql-scripts.noarch                     6.4.13-release1.el7        zabbix

But i only got error message "msg": "Failure talking to yum: Error getting repository data for epel, repository not found"
And when i check the machine where the automation runs the repo that was enabled doesn’t have the agent on the version i need

[root@node ~]# yum list available --disablerepo="*" --enablerepo=zabbix
Plugins carregados: langpacks, product-id, search-disabled-repos, subscription-
                  : manager
Pacotes disponíveis
zabbix-agent.x86_64                           6.4.13-release1.el7        zabbix
zabbix-agent2.x86_64                          6.4.13-release1.el7        zabbix
zabbix-agent2-plugin-mongodb.x86_64           6.4.13-release1.el7        zabbix
zabbix-agent2-plugin-mssql.x86_64             6.4.13-release1.el7        zabbix
zabbix-agent2-plugin-postgresql.x86_64        6.4.13-release1.el7        zabbix
zabbix-get.x86_64                             6.4.13-release1.el7        zabbix
zabbix-java-gateway.x86_64                    6.4.13-release1.el7        zabbix
zabbix-js.x86_64                              6.4.13-release1.el7        zabbix
zabbix-proxy-mysql.x86_64                     6.4.13-release1.el7        zabbix
zabbix-proxy-pgsql.x86_64                     6.4.13-release1.el7        zabbix
zabbix-proxy-sqlite3.x86_64                   6.4.13-release1.el7        zabbix
zabbix-release.noarch                         6.4-1.el7                  zabbix
zabbix-selinux-policy.x86_64                  6.4.13-release1.el7        zabbix
zabbix-sender.x86_64                          6.4.13-release1.el7        zabbix
zabbix-sql-scripts.noarch                     6.4.13-release1.el7        zabbix
ACTUAL RESULTS

gist with ansible output