From c751c2dc6bb6afb0beed62d624ff019b37341e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Wed, 4 Oct 2017 13:16:04 +0200 Subject: [PATCH] nfs: add run once to user creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The create user call is idempotent but it's also blocking for some reasons. Signed-off-by: Sébastien Han --- roles/ceph-nfs/tasks/create_rgw_nfs_user.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ceph-nfs/tasks/create_rgw_nfs_user.yml b/roles/ceph-nfs/tasks/create_rgw_nfs_user.yml index 1f51fbf1a..6a8eadcff 100644 --- a/roles/ceph-nfs/tasks/create_rgw_nfs_user.yml +++ b/roles/ceph-nfs/tasks/create_rgw_nfs_user.yml @@ -7,6 +7,7 @@ - name: create rgw nfs user command: "{{ docker_exec_cmd_nfs | default('') }} radosgw-admin --cluster {{ cluster }} user create --uid={{ ceph_nfs_rgw_user }} --display-name='RGW NFS User'" + run_once: true register: rgwuser changed_when: false delegate_to: "{{ groups[mon_group_name][0] }}"