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 <seb@redhat.com>
pull/2431/head
Sébastien Han 2018-03-01 16:46:01 +01:00 committed by Guillaume Abrioux
parent 1e283bf69b
commit 67f46d8ec3
1 changed files with 2 additions and 0 deletions

View 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: