From 01ba83855e6a5ec4b7231f13aa17cabe99dfce63 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Thu, 1 Mar 2018 16:46:01 +0100 Subject: [PATCH] rgw: run the handler on a mon host MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In case the admin wasn't copied over to the node this command would fail. So it's safer to run it from a monitor directly. Signed-off-by: Sébastien Han (cherry picked from commit 67f46d8ec362b7b8aacb91e009e528b5e62d48ac) --- roles/ceph-rgw/handlers/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/ceph-rgw/handlers/main.yml b/roles/ceph-rgw/handlers/main.yml index b50b7729f..a1c7c960a 100644 --- a/roles/ceph-rgw/handlers/main.yml +++ b/roles/ceph-rgw/handlers/main.yml @@ -1,6 +1,8 @@ --- - name: update period command: radosgw-admin period update --commit + delegate_to: "{{ groups[mon_group_name][0] }}" + run_once: true - name: restart rgw service: -- 2.39.5