Here is a doubt I had while reading your description. It seems easy to change and if I am right I will gladly submit a pull request, I just wanted to be sure that I understood well.
key_type is either private or public. I guess it corresponds to what I only ever called secret and public. If I did not misunderstand, I think there are two mistakes in the descriptions of the key_file and key_id.
key_file says that it is only for public keys, which is weird because your examples show how to use it for private keys and I think that is also what I read in the code.
Here is a doubt I had while reading your description. It seems easy to change and if I am right I will gladly submit a pull request, I just wanted to be sure that I understood well.
https://github.com/tnt/ansible-gpg-import-module/blob/master/gpg_import.py#L35
key_type
is eitherprivate
orpublic
. I guess it corresponds to what I only ever calledsecret
andpublic
. If I did not misunderstand, I think there are two mistakes in the descriptions of thekey_file
andkey_id
.https://github.com/tnt/ansible-gpg-import-module/blob/master/gpg_import.py#L21
key_id
says that it is only forprivate
/secret
keys, which is weird because you cannot import private keys from key servershttps://github.com/tnt/ansible-gpg-import-module/blob/master/gpg_import.py#L27
key_file
says that it is only forpublic
keys, which is weird because your examples show how to use it for private keys and I think that is also what I read in the code.