From 17d8351971680527efc0cbcd38952a977b5f138c Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 6 Jan 2022 14:33:42 +0100 Subject: [PATCH] cephadm-adopt: use named args in rgw export creation 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 (cherry picked from commit aee1f06497d1e3737d286186d24338a03990644a) --- infrastructure-playbooks/cephadm-adopt.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure-playbooks/cephadm-adopt.yml b/infrastructure-playbooks/cephadm-adopt.yml index 57a76465e8..a58a3726d0 100644 --- a/infrastructure-playbooks/cephadm-adopt.yml +++ b/infrastructure-playbooks/cephadm-adopt.yml @@ -1100,7 +1100,7 @@ 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: