Re: [ansible-project] getting Asible.errors.AnsibleUndefinedVariable: 'broker' is undefined despite assigning in inventory file

2024-04-23 Thread Todd Lewis
There is yet another way to approach this that I like better than adding variables to hosts in your inventory. It looks like this: qa_kafka: children: cc: children: qa_eng_kafka_cluster: children: qa_eng_zoo: hosts:

Re: [ansible-project] getting Asible.errors.AnsibleUndefinedVariable: 'broker' is undefined despite assigning in inventory file

2024-04-22 Thread Todd Lewis
The messages are correct. You have only defined the "broker" variable on one set of hosts, and the two hosts indicated in the errors are not in that set. You can fix this in a couple of ways. One way is to define all three variables in all three sets of hosts: qa_eng_kafka_cluster:

[ansible-project] getting Asible.errors.AnsibleUndefinedVariable: 'broker' is undefined despite assigning in inventory file

2024-04-22 Thread Sameer Modak
Hello Team, I am putting broker: true and zookeeper: true in inventory file but i still getting below exception as its referred in j2 file An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: 'broker' is