ansible-role-aptly icon indicating copy to clipboard operation
ansible-role-aptly copied to clipboard

Fails on VMs with no /dev/hwrandom

Open chriscroome opened this issue 5 years ago • 3 comments

I tried using this Ansible role on a Debian Stretch virtual server running on Xen and it failed at aptly : start rngd for entropy creation due to the lack of /dev/hwrandom:

"stderr": "can't open /dev/hwrandom: No such file or directory"

Perhaps the existence of /dev/hwrandom could be checked and if it doesn't exist then /dev/random could be used?

chriscroome avatar Jan 29 '19 12:01 chriscroome

This workaround appears to work.

chriscroome avatar Jan 29 '19 13:01 chriscroome

Thank you. I'd accept that as a PR if you wish.

aioue avatar Jan 29 '19 13:01 aioue

Thanks, I'll see if I can get something working that isn't too much of a mess...

chriscroome avatar Jan 29 '19 14:01 chriscroome