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>
pull/6223/head
Guillaume Abrioux 2021-01-27 18:36:13 +01:00 committed by Dimitri Savineau
parent e835b08f8f
commit 8617081664
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