We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c5bf50 commit a2fe728Copy full SHA for a2fe728
1 file changed
apps/manual-kafka-cluster/roles/kafka/tasks/hostname.yml
@@ -8,7 +8,7 @@
8
block: |
9
#jinja2: trim_blocks:False
10
{%- for count in range(cluster_size) %}
11
- {{ kafka_data.server[count].instance.ip_priv1 }} {{ kafka_data.server[count].instance.hostname }}
+ {{ kafka_data.server[count].instance.ip_priv1 }} {{ kafka_data.server[count].instance.hostname }} {{ instance_prefix }}{{ count+1 }}
12
{%- endfor %}
13
14
- name: configure hostnames
@@ -19,4 +19,4 @@
19
delegate_to: "{{ item }}"
20
loop: "{{ groups['kafka'] }}"
21
loop_control:
22
- index_var: count
+ index_var: count
0 commit comments