From 3cfeaadbd8ec5eb0856c04f3b7ba221d4711ce0b Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Fri, 23 Mar 2018 12:04:10 -0500 Subject: [PATCH] Add online reindex tasks to project rename playbook At the end, we have online reindex tasks we need to perform. Add them to the playbook. Change-Id: I4564facd617975b9bcb9df3a22eb2da8c77847c5 --- playbooks/rename_repos.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/playbooks/rename_repos.yaml b/playbooks/rename_repos.yaml index e84c366ec0..8ad32d79c5 100644 --- a/playbooks/rename_repos.yaml +++ b/playbooks/rename_repos.yaml @@ -85,5 +85,8 @@ shell: "{{ gerrit_ssh_command }} rename-group {{ item.old }} {{ item.new }}" with_items: "{{ gerrit_groups|default([]) }}" -# TODO: online reindex accounts -# TODO: online reindex projects + - name: Start online reindex of accounts + shell: "{{ gerrit_ssh_command }} index start accounts --force" + + - name: Start online reindex of changes + shell: "{{ gerrit_ssh_command }} index start changes --force"