From 1ac5e3609698d378a8e8593dd43b30c7c63999f8 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Fri, 9 Apr 2021 10:01:13 +0200 Subject: [PATCH] nfs: rename two tasks set the name of those tasks accordingly with the fact name being set. Signed-off-by: Guillaume Abrioux (cherry picked from commit d3d3d015286012b171d424c4a9cfe73ca0d3bd09) --- roles/ceph-nfs/tasks/start_nfs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ceph-nfs/tasks/start_nfs.yml b/roles/ceph-nfs/tasks/start_nfs.yml index 3247d92cdd..cabbc278ab 100644 --- a/roles/ceph-nfs/tasks/start_nfs.yml +++ b/roles/ceph-nfs/tasks/start_nfs.yml @@ -1,12 +1,12 @@ --- - block: - - name: set_fact container_exec_cmd_nfs - external + - name: set_fact exec_cmd_nfs - external set_fact: exec_cmd_nfs: "{{ container_binary + ' run --rm --net=host -v /etc/ceph:/etc/ceph:z -v /var/lib/ceph/:/var/lib/ceph/:z -v /var/log/ceph/:/var/log/ceph/:z --entrypoint=rados ' + ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment | bool else 'rados' }} -n client.{{ ceph_nfs_ceph_user }} -k /var/lib/ceph/radosgw/{{ cluster }}-rgw.{{ ceph_nfs_ceph_user }}/keyring" delegate_node: "{{ inventory_hostname }}" when: groups.get(mon_group_name, []) | length == 0 - - name: set_fact container_exec_cmd_nfs - internal + - name: set_fact exec_cmd_nfs - internal set_fact: exec_cmd_nfs: "{{ container_binary + ' exec ceph-mon-' + hostvars[groups[mon_group_name][0]]['ansible_facts']['hostname'] if containerized_deployment | bool else '' }} rados" delegate_node: "{{ groups[mon_group_name][0] }}"