ceph-ansible/roles/ceph-rgw/tasks/multisite/main.yml

27 lines
611 B
YAML
Raw Normal View History

2016-08-11 05:05:27 +08:00
---
2016-08-17 05:57:49 +08:00
- name: include multisite checks
include_tasks: checks.yml
2016-08-11 05:05:27 +08:00
# Include the tasks depending on the zone type
- name: include_tasks master.yml
include_tasks: master.yml
when:
- rgw_zonemaster
- not rgw_zonesecondary
2016-08-11 05:05:27 +08:00
- name: include_tasks secondary.yml
include_tasks: secondary.yml
when:
- not rgw_zonemaster
- rgw_zonesecondary
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
ini_file:
dest: "/etc/ceph/{{ cluster }}.conf"
section: "client.rgw.{{ ansible_hostname }}"
option: "rgw_zone"
value: "{{ rgw_zone }}"
2016-08-17 02:57:01 +08:00
notify:
- restart rgw