mirror of https://github.com/ceph/ceph-ansible.git
31 lines
863 B
YAML
31 lines
863 B
YAML
---
|
|
- name: include multisite checks
|
|
include: checks.yml
|
|
|
|
# Include the tasks depending on the zone type
|
|
- name: include master multisite tasks
|
|
include: master.yml
|
|
when:
|
|
- rgw_zonemaster is defined
|
|
- rgw_zonemaster
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
static: False
|
|
|
|
- name: include secondary multisite tasks
|
|
include: secondary.yml
|
|
when:
|
|
- rgw_zonesecondary is defined
|
|
- rgw_zonesecondary
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
static: False
|
|
|
|
# Continue with common tasks
|
|
- name: add zone to rgw stanza in ceph.conf
|
|
ini_file:
|
|
dest: "/etc/ceph/{{ cluster }}.conf"
|
|
section: "client.rgw.{{ ansible_hostname }}"
|
|
option: "rgw_zone"
|
|
value: "{{ rgw_zone }}"
|
|
notify:
|
|
- restart rgw
|