Closed zz9pzza closed 5 years ago
https://travis-ci.org/rvm/rvm1-ansible/jobs/467604338 is a build issue on travis.
gpg --version gpg (GnuPG) 1.4.18
cat /etc/debian_version 9.6
Does https://github.com/rvm/rvm1-ansible/pull/188 fix it? I found that through https://github.com/rvm/rvm1-ansible/issues/187
I just applied that patch and still ran into the issue. So after a failed build, I logged into the server and ran:
sudo su
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
See recent comments on: https://github.com/rvm/rvm/issues/3110
@lpaulmp when can we release new version?
I am just running tests with head. And I am still getting the issue when I do:
sudo su gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
I am have imported the keys as the user which installs rvm and see if that helps.
Doing gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
as the user that is rvm is being installed as works. Head currently doesn't work for me on debian 9 installing rvm as a non root user.
Your issue is GPG signature verification failed
. That's because you have not imported gpg keys. If you run this command for a user installing rvm, the issue will go away. There is also a fix for rvm ansible role, which I am waiting for @lpaulmp to release...
On new server builds, this is still happening on Debian and Ubuntu though; and manually applying the PR as a patch didn't seem to fix it (with the --batch
addition). But still, it would be good to get a new release sometime soon; there are a lot of commits to master since 2.0.1.
@geerlingguy yeah the patch didn't seem to fix the issue with GPG, I didn't release a stable version because GPG is not working properly yet
Following
I just released a new version which should fix the issue u mention...
Testing the latest version of the role now. I was (until today) using an extra task in my playbook to ensure that extra GPG key was added in my pre_tasks
:
- name: Add GPG key for rvm until role installs it correctly.
command: >
gpg --keyserver hkp://keys.gnupg.net
--recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
changed_when: false
tags: ['ruby']
...and I can confirm that extra task is no longer required if using rvm.ruby v2.1.1. Thanks!
Awesome! Good to hear :)
under Ubuntu2004 for me worked this:
- name: install GPG for rvm
command: >
gpg2 --keyserver hkp://keyserver.ubuntu.com
--recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
tags: rvm
I suspect you already know however: