mirror of https://github.com/ceph/ceph-ansible.git
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
parent
df98746378
commit
78d9d9df11
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue