2016-08-11 05:05:27 +08:00
|
|
|
---
|
2016-08-17 05:57:49 +08:00
|
|
|
- name: include multisite checks
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: checks.yml
|
2016-08-11 05:05:27 +08:00
|
|
|
|
|
|
|
# Include the tasks depending on the zone type
|
2018-08-10 20:16:30 +08:00
|
|
|
- name: include_tasks master.yml
|
|
|
|
include_tasks: master.yml
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
2019-05-22 16:02:42 +08:00
|
|
|
- rgw_zonemaster | bool
|
|
|
|
- not rgw_zonesecondary | bool
|
2016-08-11 05:05:27 +08:00
|
|
|
|
2018-08-10 20:16:30 +08:00
|
|
|
- name: include_tasks secondary.yml
|
|
|
|
include_tasks: secondary.yml
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
2019-05-22 16:02:42 +08:00
|
|
|
- not rgw_zonemaster | bool
|
|
|
|
- rgw_zonesecondary | bool
|
2016-08-11 05:05:27 +08:00
|
|
|
|
2016-08-17 02:57:01 +08:00
|
|
|
# Continue with common tasks
|
2016-08-17 05:57:49 +08:00
|
|
|
- name: add zone to rgw stanza in ceph.conf
|
2017-01-29 01:30:27 +08:00
|
|
|
ini_file:
|
2016-08-23 18:03:05 +08:00
|
|
|
dest: "/etc/ceph/{{ cluster }}.conf"
|
2017-01-29 01:30:27 +08:00
|
|
|
section: "client.rgw.{{ ansible_hostname }}"
|
|
|
|
option: "rgw_zone"
|
|
|
|
value: "{{ rgw_zone }}"
|
2019-04-01 23:46:15 +08:00
|
|
|
notify: restart rgw
|