Skip to content

Commit

Permalink
replace_node.yml: Start manager-agent and disable RBNO only for the n…
Browse files Browse the repository at this point in the history
…ew node

These tasks shouldn't be touching other nodes besides the one being added
  • Loading branch information
igorribeiroduarte authored and vladzcloudius committed Aug 15, 2024
1 parent 2a44e10 commit f1a36b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example-playbooks/replace_node/replace_node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@
state: restarted
enabled: yes
become: true
when: inventory_hostname == new_node

- name: Re-enable RBNO for the new node
block:
Expand All @@ -341,7 +342,7 @@
shell: |
pkill -1 scylla$
become: true
when: disable_rbno|bool and _rbno_enabled is defined and _rbno_enabled|bool
when: inventory_hostname == new_node and disable_rbno|bool and _rbno_enabled is defined and _rbno_enabled|bool


- name: Resume scylla-manager tasks
Expand Down

0 comments on commit f1a36b7

Please sign in to comment.