On 07/26/23 Rob Landley wrote:
> On 7/26/23 17:32, Pádraig Brady wrote:
> > Well /dev/stdin works for this.  I.e. this works:
> > 
> >     echo secret | install -m 0600 /dev/stdin keyfile
> >

Yes, this works for me. Thank you. I accept this solution and hereby
withdraw my feature request.

> 
> Presumably also install -m 0600 <(generate_secret) keyfile

I would use this in bash. But as far as I know, this is bash-specific.
I was looking for a shell-agnostic approach for an Ansible
ansibile.builtin.shell module.

Thanks for the advises.

Lars

Attachment: signature.asc
Description: This is a digitally signed message part

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to