# Unable to locate collection confluent.platform'"}

**URL:** <https://forum.ansible.com/t/unable-to-locate-collection-confluent-platform/10347>\
**Category:** Get Help\
**Created:** [October 17, 2024, 7:32am UTC](https://forum.ansible.com/t/unable-to-locate-collection-confluent-platform/10347 "2024-10-17T07:32:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer\_Modak](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sameer_modak/32/5180_2.png) [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Post date:** [October 17, 2024, 7:32am UTC](https://forum.ansible.com/t/unable-to-locate-collection-confluent-platform/10347/1 "2024-10-17T07:32:56Z")

</div>

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’”}

---

<div class="post-metadata">

**Author:** ![chris](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/chris/32/293_2.png) [@chris](https://forum.ansible.com/u/chris)\
**Post date:** [October 17, 2024, 1:00pm UTC](https://forum.ansible.com/t/unable-to-locate-collection-confluent-platform/10347/2 "2024-10-17T13:00:27Z")

</div>

> [@Sameer\_Modak](#):
>
> unable to locate collection confluent.platform

Have you installed the `confluent.platform` collection?

---

<div class="post-metadata">

**Author:** ![Sameer\_Modak](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sameer_modak/32/5180_2.png) [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Post date:** [October 18, 2024, 1:49pm UTC](https://forum.ansible.com/t/unable-to-locate-collection-confluent-platform/10347/3 "2024-10-18T13:49:47Z")

</div>

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???
