diff --git a/roles/update/tasks/switchover.yml b/roles/update/tasks/switchover.yml index 95e3b3b12..558bbc8ae 100644 --- a/roles/update/tasks/switchover.yml +++ b/roles/update/tasks/switchover.yml @@ -5,8 +5,8 @@ method: POST body: '{"leader":"{{ ansible_hostname }}"}' body_format: json - register: patronictl_switchover_result - until: patronictl_switchover_result.status == 200 + register: switchover_result + until: switchover_result.status == 200 retries: 300 delay: 2 environment: