- name: Start RGW
command: /etc/init.d/radosgw start
when: rgwstatus.rc != 0
-
-- name: Create a user in radosgw
- command: radosgw-admin --name client.radosgw.gateway user create --uid=johndoe --display-name="John Doe" --email=john@example.com
-
-- name: Create a swift subuser
- command: radosgw-admin --name client.radosgw.gateway subuser create --uid=johndoe --subuser=johndoe:swift --access=full
- ignore_errors: True
-
-- name: Create a swift subuser key
- command: radosgw-admin --name client.radosgw.gateway key create --subuser=johndoe:swift --key-type=swift
- ignore_errors: True
-
-- name: Remove user from radosgw
- command: radosgw-admin --name client.radosgw.gateway user rm --uid=johndoe
- name: Start RGW
command: /etc/init.d/ceph-radosgw start
when: rgwstatus.rc != 0
-
-- name: Create a user in radosgw
- command: radosgw-admin --name client.radosgw.gateway user create --uid=johndoe --display-name="John Doe" --email=john@example.com
-
-- name: Create a swift subuser
- command: radosgw-admin --name client.radosgw.gateway subuser create --uid=johndoe --subuser=johndoe:swift --access=full
- ignore_errors: True
-
-- name: Create a swift subuser key
- command: radosgw-admin --name client.radosgw.gateway key create --subuser=johndoe:swift --key-type=swift
- ignore_errors: True
-
-- name: Remove user from radosgw
- command: radosgw-admin --name client.radosgw.gateway user rm --uid=johndoe