Commit aeee3471 authored by Guillaume Abrioux's avatar Guillaume Abrioux Committed by Dimitri Savineau
Browse files

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: default avatarGuillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 86170816)
parent b903446f
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment