cephadm-adopt: use named args in rgw export creation
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 6 Jan 2022 13:33:42 +0000 (14:33 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 6 Jan 2022 14:56:07 +0000 (15:56 +0100)
In order to avoid breaking changes, let's use named argument
instead of positional argument syntax in the command line
used to create rgw export.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2037691
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/cephadm-adopt.yml

index 57a76465e86be4f102cbb33a16cf5ccda99cdc74..a58a3726d06cece72278a97ffb29629c4dda09a5 100644 (file)
       when: bucket_list.skipped is undefined
 
     - name: create rgw export
-      command: "{{ cephadm_cmd }} shell --fsid {{ fsid }} -- ceph --cluster {{ cluster }} nfs export create rgw {{ item }} {{ ansible_facts['hostname'] }} {{ ceph_nfs_rgw_pseudo_path }} --squash {{ ceph_nfs_rgw_squash }}"
+      command: "{{ cephadm_cmd }} shell --fsid {{ fsid }} -- ceph --cluster {{ cluster }} nfs export create rgw --cluster-id {{ ansible_facts['hostname'] }} --bucket {{ item.split('/')[-1] }} --pseudo-path {{ ceph_nfs_rgw_pseudo_path }} --squash {{ ceph_nfs_rgw_squash }}"
       changed_when: false
       delegate_to: "{{ groups[mon_group_name][0] }}"
       environment: