Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions playbooks/add-redis-leader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@
when: >
inventory_hostname in groups['leader'][0] and
new_leader_node not in command_result.stdout

- name: Rebalance the Redis cluster
command: |-
{{redis_command}}
--cluster rebalance {{ansible_ssh_host}}:{{redis_port}}
when: >-
node_status == "ready" and inventory_hostname in groups['leader'][0]