]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rgw: run the handler on a mon host
authorSébastien Han <seb@redhat.com>
Thu, 1 Mar 2018 15:46:01 +0000 (16:46 +0100)
committerSébastien Han <seb@redhat.com>
Mon, 5 Mar 2018 08:41:38 +0000 (09:41 +0100)
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 <seb@redhat.com>
(cherry picked from commit 67f46d8ec362b7b8aacb91e009e528b5e62d48ac)

roles/ceph-rgw/handlers/main.yml

index b50b7729f9af2657ec089ae994693d854aa08ba4..a1c7c960a0b0a3a4b5dbd2f4d5cd97ae684c491b 100644 (file)
@@ -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: