mirror of https://github.com/ceph/ceph-ansible.git
33 lines
783 B
YAML
33 lines
783 B
YAML
---
|
|
- name: check if the realm already exists
|
|
command: radosgw-admin realm get --rgw-realm={{ rgw_realm }}
|
|
register: realmcheck
|
|
failed_when: False
|
|
changed_when: False
|
|
tags:
|
|
- always
|
|
|
|
- name: check if the zonegroup already exists
|
|
command: radosgw-admin zonegroup get --rgw-zonegroup={{ rgw_zonegroup }}
|
|
register: zonegroupcheck
|
|
failed_when: False
|
|
changed_when: False
|
|
tags:
|
|
- always
|
|
|
|
- name: check if the zone already exists
|
|
command: radosgw-admin zone get --rgw-zone={{ rgw_zone }}
|
|
register: zonecheck
|
|
failed_when: False
|
|
changed_when: False
|
|
tags:
|
|
- always
|
|
|
|
- name: check if the system user already exists
|
|
command: radosgw-admin user info --uid=zone.user
|
|
register: usercheck
|
|
failed_when: False
|
|
changed_when: False
|
|
tags:
|
|
- always
|