From: Sébastien Han Date: Thu, 1 Mar 2018 15:46:01 +0000 (+0100) Subject: rgw: run the handler on a mon host X-Git-Tag: v3.0.28~4 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=01ba83855e6a5ec4b7231f13aa17cabe99dfce63;p=ceph-ansible.git rgw: run the handler on a mon host 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) --- 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: