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

Create GPG key fails

Open chriscroome opened this issue 5 years ago • 2 comments

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.

chriscroome avatar Jan 29 '19 14:01 chriscroome

@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:

  • https://github.com/idealista/aptly-role/issues/7
  • https://github.com/manala/ansible-roles/issues/481 ** https://github.com/aptly-dev/aptly/issues/930

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

timblaktu avatar Nov 10 '20 20:11 timblaktu

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

chriscroome avatar Nov 10 '20 20:11 chriscroome