Open jschulthess opened 7 years ago
The key in question is: Version: GnuPG v2.0.14 (GNU/Linux)
Could it be that the ansible "rpm_key" module uses v1.x?
I am experiencing the same issue using the rpm_key
module in Vagrant VM using the vagrant image centos/7
and ansible-2.4.0.0
EDIT: After some testing I have noticed that these combinations work:
geerlingguy/centos7
works OKcentos/7
works OKcentos/7
FAILSI have found a workaround by installing the epel-release
rpm before trying to add the keys. Not sure why it solves it.
ISSUE TYPE
container.yml
OS / ENVIRONMENT
SUMMARY
Using 0.9.2, a task like the following:
state: present
fails with: fatal: [elasticsearch]: FAILED! => {"changed": false, "failed": true, "msg": "gpg: no valid OpenPGP data found.\ngpg: processing message failed: Unknown system error\n"} even though the URL shows seemingly valid GPG key data.
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS