2016-08-11 05:05:27 +08:00
|
|
|
---
|
2016-08-17 05:57:49 +08:00
|
|
|
- name: check if the realm already exists
|
2018-10-29 21:05:59 +08:00
|
|
|
command: "{{ docker_exec_cmd }} radosgw-admin realm get --rgw-realm={{ rgw_realm }}"
|
2017-09-19 06:33:23 +08:00
|
|
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
2016-08-11 05:05:27 +08:00
|
|
|
register: realmcheck
|
|
|
|
failed_when: False
|
|
|
|
changed_when: False
|
2017-10-25 22:53:34 +08:00
|
|
|
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
|
2018-10-29 21:05:59 +08:00
|
|
|
command: "{{ docker_exec_cmd }} radosgw-admin zonegroup get --rgw-zonegroup={{ rgw_zonegroup }}"
|
2017-09-19 06:33:23 +08:00
|
|
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
2016-08-11 05:05:27 +08:00
|
|
|
register: zonegroupcheck
|
|
|
|
failed_when: False
|
|
|
|
changed_when: False
|
2017-10-25 22:53:34 +08:00
|
|
|
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
|
2018-10-29 21:05:59 +08:00
|
|
|
command: "{{ docker_exec_cmd }} radosgw-admin zone get --rgw-zone={{ rgw_zone }}"
|
2017-09-19 06:33:23 +08:00
|
|
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
2016-08-11 05:05:27 +08:00
|
|
|
register: zonecheck
|
|
|
|
failed_when: False
|
|
|
|
changed_when: False
|
2017-10-25 22:53:34 +08:00
|
|
|
check_mode: no
|
2016-08-11 05:05:27 +08:00
|
|
|
|
2016-08-17 05:57:49 +08:00
|
|
|
- name: check if the system user already exists
|
2018-10-29 21:05:59 +08:00
|
|
|
command: "{{ docker_exec_cmd }} radosgw-admin user info --uid={{ rgw_zone_user }}"
|
2017-09-19 06:33:23 +08:00
|
|
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
2016-08-11 05:05:27 +08:00
|
|
|
register: usercheck
|
|
|
|
failed_when: False
|
|
|
|
changed_when: False
|
2017-10-25 22:53:34 +08:00
|
|
|
check_mode: no
|