aioue / ansible-role-aptly

Install aptly debian respository manager and enable the REST API
https://galaxy.ansible.com/list#/roles/3898
MIT License
42 stars 12 forks source link

Create GPG key fails #9

Open chriscroome opened 5 years ago

chriscroome commented 5 years ago

On a Debian Stretch server the create key task fails with:

gpg: agent_genkey failed: Timeout

This appears because this command:

gpg2 --batch --gen-key ${HOME}/gpg2_gen_key

Prompts for a passphrase, even setting it to nothing still prompts for one:

gpg2 --batch --gen-key --passphrase "" ${HOME}/gpg2_gen_key

Also the secret key is not written to $HOME/key.sec... so this all needs fixing... I'll see what I can do later...

Also this might be worth noting:

DSA allows a key size up to 1024 bits.

timblaktu commented 3 years ago

@chriscroome where'd you end up on this? Did you abandon using this role? I'm considering using it, but don't want to bother if it simply doesn't work right now. I've spent several days trying to get 2 other aptly roles working and they all had significant problems:

I'd be curious if you ever found an aptly role that works.

chriscroome commented 3 years ago

There is a fork here with some updates but think I gave up and ended up using reprepo.