rgw: avoid useless call to ceph-rgw

since `ceph-rgw` may be called from `ceph-handler` in some contexts we
should avoid rerunning it unnecessarily.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 8617081664)
pull/6227/head
Guillaume Abrioux 2021-01-27 18:36:13 +01:00 committed by Dimitri Savineau
parent df98746378
commit 78d9d9df11
2 changed files with 10 additions and 2 deletions

View File

@ -68,4 +68,10 @@
import_role:
name: ceph-rgw
tasks_from: multisite.yml
when: rgw_multisite | bool
when:
- rgw_multisite | bool
- not multisite_called_from_handler_role | default(False) | bool
- name: set_fact multisite_called_from_handler_role
set_fact:
multisite_called_from_handler_role: true

View File

@ -29,4 +29,6 @@
- name: include_tasks multisite/main.yml
include_tasks: multisite/main.yml
when: rgw_multisite | bool
when:
- rgw_multisite | bool
- not multisite_called_from_handler_role | default(False) | bool