Skip to content

Commit

Permalink
Add custom zookeeper id for each host based in inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Baufaker Rêgo committed Oct 9, 2023
1 parent 4f52147 commit bd07430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/amq_streams_zookeeper/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

- name: "Configure 'myid' file based on the position in the zookeepers group"
copy:
content: "{{ amq_streams_zookeeper_inventory_group.index(inventory_hostname) + 1 }}"
content: "{{ zookeeper_id | default(amq_streams_zookeeper_inventory_group.index(inventory_hostname) + 1) }}"
dest: "{{ amq_streams_zookeeper_data_dir }}/myid"
owner: "{{ amq_streams_zookeeper_user | default(omit) }}"
group: "{{ amq_streams_zookeeper_group | default(omit) }}"
Expand Down

0 comments on commit bd07430

Please sign in to comment.