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

28 lines
884 B
YAML
Raw Normal View History

2016-08-11 05:05:27 +08:00
---
2016-08-17 02:57:01 +08:00
- name: Include multisite checks
include: checks.yml
2016-08-11 05:05:27 +08:00
# Include the tasks depending on the zone type
2016-08-17 02:57:01 +08:00
- name: Include master multisite tasks
include: master.yml
when: "rgw_zonemaster is defined and rgw_zonemaster"
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
static: False
2016-08-11 05:05:27 +08:00
2016-08-17 02:57:01 +08:00
- name: Include secondary multisite tasks
include: secondary.yml
when: "rgw_zonesecondary is defined and rgw_zonesecondary"
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
static: False
2016-08-11 05:05:27 +08:00
2016-08-17 02:57:01 +08:00
# Continue with common tasks
- name: Add zone to RGW stanza in ceph.conf
lineinfile:
dest: /etc/ceph/ceph.conf
regexp: "{{ ansible_host }}"
insertafter: "^[client.rgw.{{ ansible_host }}]"
line: "rgw_zone = {{ rgw_zone }}"
state: present
notify:
- restart rgw