mirror of https://github.com/ceph/ceph-ansible.git
31 lines
869 B
YAML
31 lines
869 B
YAML
---
|
|
- name: include multisite checks
|
|
include_tasks: 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
|