diff --git a/roles/edpm_libvirt/tasks/virsh-secret.yml b/roles/edpm_libvirt/tasks/virsh-secret.yml index e051da996..3d86c128c 100644 --- a/roles/edpm_libvirt/tasks/virsh-secret.yml +++ b/roles/edpm_libvirt/tasks/virsh-secret.yml @@ -35,7 +35,7 @@ ansible.builtin.command: "podman exec libvirt_virtqemud bash -c 'virsh secret-set-value $FSID --base64 $KEY'" environment: FSID: "{{ fsid }}" - KEY: "{{ cephx_key.stdout }}" + KEY: "{{ cephx_key.stdout | regex_replace('\"', '') }}" when: - cephx_key.stdout is defined - - cephx_key.stdout | regex_search('^[a-zA-Z0-9+/]{38}==$') + - cephx_key.stdout | regex_replace('\"', '') | regex_search('^[a-zA-Z0-9+/]{38}==$')