Unable to locate collection confluent.platform'"}

I am running ansible confluent cp playbook and i am getting below error
on running role what am i missing

{“msg”: “An unhandled exception occurred while templating ‘{{ zookeeper_combined_properties | combine(zookeeper_custom_properties) }}’. Error was a <class ‘ansible.errors.AnsibleError’>, original message: An unhandled exception occurred while templating ‘{{ zookeeper_properties }}’. Error was a <class ‘ansible.errors.AnsibleError’>, original message: An unhandled exception occurred while templating ‘{‘defaults’: {‘enabled’: True, ‘properties’: {‘maxClientCnxns’: 0, ‘initLimit’: 5, ‘syncLimit’: 2, ‘autopurge.snapRetainCount’: 10, ‘autopurge.purgeInterval’: 1, ‘dataDir’: ‘/zookeeper/data/’, ‘admin.enableServer’: ‘false’}}, ‘non_secure’: {‘enabled’: ‘{{ not zookeeper_ssl_enabled }}’, ‘properties’: {‘clientPort’: ‘{{zookeeper_client_port}}’}}, ‘client_ssl’: {‘enabled’: ‘{{ zookeeper_ssl_enabled }}’, ‘properties’: {‘secureClientPort’: ‘{{zookeeper_client_port}}’, ‘serverCnxnFactory’: ‘org.apache.zookeeper.server.NettyServerCnxnFactory’, ‘authProvider.x509’: ‘org.apache.zookeeper.server.auth.X509AuthenticationProvider’, ‘ssl.keyStore.location’: ‘{{zookeeper_keystore_path}}’, ‘ssl.keyStore.password’: ‘{{zookeeper_keystore_storepass}}’, ‘ssl.trustStore.location’: ‘{{zookeeper_truststore_path}}’, ‘ssl.trustStore.password’: ‘{{zookeeper_truststore_storepass}}’, ‘ssl.clientAuth’: "{{ ‘need’ if zookeeper_client_authentication_type == ‘mtls’ else ‘none’ }}"}}, ‘client_sasl’: {‘enabled’: "{{ zookeeper_client_authentication_type in [‘kerberos’, ‘digest’] or zookeeper_quorum_authentication_type in [‘digest’, ‘digest_over_tls’] }}", ‘properties’: {‘authProvider.sasl’: ‘org.apache.zookeeper.server.auth.SASLAuthenticationProvider’}}, ‘client_sasl_kerberos’: {‘enabled’: "{{ zookeeper_client_authentication_type == ‘kerberos’ }}", ‘properties’: {‘kerberos.removeHostFromPrincipal’: ‘true’, ‘kerberos.removeRealmFromPrincipal’: ‘true’}}, ‘quorum_ssl’: {‘enabled’: "{{ zookeeper_quorum_authentication_type in [‘mtls’, ‘digest_over_tls’] }}", ‘properties’: {‘sslQuorum’: ‘true’, ‘ssl.quorum.keyStore.location’: ‘{{zookeeper_keystore_path}}’, ‘ssl.quorum.keyStore.password’: ‘{{zookeeper_keystore_storepass}}’, ‘ssl.quorum.trustStore.location’: ‘{{zookeeper_truststore_path}}’, ‘ssl.quorum.trustStore.password’: ‘{{zookeeper_truststore_storepass}}’}}, ‘quorum_sasl’: {‘enabled’: "{{ zookeeper_quorum_authentication_type in [‘digest’, ‘digest_over_tls’] }}", ‘properties’: {‘quorum.auth.enableSasl’: True, ‘quorum.auth.learnerRequireSasl’: True, ‘quorum.auth.serverRequireSasl’: True, ‘quorum.auth.learner.saslLoginContext’: ‘QuorumLearner’, ‘quorum.auth.server.saslLoginContext’: ‘QuorumServer’}}, ‘servers’: {‘enabled’: True, ‘properties’: ‘{{ zookeeper_servers }}’}}’. Error was a <class ‘ansible.errors.AnsibleError’>, original message: An unhandled exception occurred while templating ‘{% for host in groups[‘zookeeper’] %}{% if loop.index > 1%},{% endif %}server.{{ hostvars[host][‘zookeeper_id’] | default(groups.zookeeper.index(host) + 1)}}={{ zookeeper_current_node_hostname if host == inventory_hostname else hostvars[host]|confluent.platform.resolve_hostname }}:{{zookeeper_peer_port}}:{{zookeeper_leader_port}}{% endfor %}’. Error was a <class ‘ansible.errors.AnsibleError’>, original message: template error while templating string: Could not load "confluent.platform.resolve_hostname": ‘Invalid plugin FQCN (confluent.platform.resolve_hostname): unable to locate collection confluent.platform’. String: {% for host in groups[‘zookeeper’] %}{% if loop.index > 1%},{% endif %}server.{{ hostvars[host][‘zookeeper_id’] | default(groups.zookeeper.index(host) + 1)}}={{ zookeeper_current_node_hostname if host == inventory_hostname else hostvars[host]|confluent.platform.resolve_hostname }}:{{zookeeper_peer_port}}:{{zookeeper_leader_port}}{% endfor %}. Could not load "confluent.platform.resolve_hostname": ‘Invalid plugin FQCN (confluent.platform.resolve_hostname): unable to locate collection confluent.platform’”}

Have you installed the confluent.platform collection?

Yes i found the issue like ansible collection was missing. I installed it and it started working but i dont want to use ansible collection for some reason . I wanted to use it as role. How can i convert those variable from confluent.platform to use it as general roles.
Do i have to name my role as confluent.platform instead current platform???