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

25 lines
699 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
2016-08-11 05:05:27 +08:00
command: radosgw-admin realm get --rgw-realm={{ rgw_realm }}
register: realmcheck
failed_when: False
changed_when: False
2016-08-17 05:57:49 +08:00
- name: check if the zonegroup already exists
2016-08-11 05:05:27 +08:00
command: radosgw-admin zonegroup get --rgw-zonegroup={{ rgw_zonegroup }}
register: zonegroupcheck
failed_when: False
changed_when: False
2016-08-17 05:57:49 +08:00
- name: check if the zone already exists
2016-08-11 05:05:27 +08:00
command: radosgw-admin zone get --rgw-zone={{ rgw_zone }}
register: zonecheck
failed_when: False
changed_when: False
2016-08-17 05:57:49 +08:00
- name: check if the system user already exists
2016-08-11 05:05:27 +08:00
command: radosgw-admin user info --uid=zone.user
register: usercheck
failed_when: False
changed_when: False