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

25 lines
977 B
YAML
Raw Normal View History

2016-08-11 05:05:27 +08:00
---
2016-08-17 05:57:49 +08:00
- name: check if the realm already exists
command: "{{ container_exec_cmd }} radosgw-admin realm get --cluster={{ cluster }} --rgw-realm={{ rgw_realm }}"
delegate_to: "{{ groups[mon_group_name][0] }}"
2016-08-11 05:05:27 +08:00
register: realmcheck
failed_when: False
changed_when: False
check_mode: no
2016-08-11 05:05:27 +08:00
2016-08-17 05:57:49 +08:00
- name: check if the zonegroup already exists
command: "{{ container_exec_cmd }} radosgw-admin zonegroup get --cluster={{ cluster }} --rgw-realm={{ rgw_realm }} --rgw-zonegroup={{ rgw_zonegroup }}"
delegate_to: "{{ groups[mon_group_name][0] }}"
2016-08-11 05:05:27 +08:00
register: zonegroupcheck
failed_when: False
changed_when: False
check_mode: no
2016-08-11 05:05:27 +08:00
2016-08-17 05:57:49 +08:00
- name: check if the zone already exists
command: "{{ container_exec_cmd }} radosgw-admin zone get --rgw-realm={{ rgw_realm }} --cluster={{ cluster }} --rgw-zonegroup={{ rgw_zonegroup }} --rgw-zone={{ rgw_zone }}"
delegate_to: "{{ groups[mon_group_name][0] }}"
2016-08-11 05:05:27 +08:00
register: zonecheck
failed_when: False
changed_when: False
check_mode: no