]> 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)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 2 Mar 2018 20:59:10 +0000 (20:59 +0000)
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>
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: