diff --git a/defaults/main.yml b/defaults/main.yml index c5498e1..33294f3 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -23,3 +23,9 @@ rvm1_rvm_version: 'stable' # Check and update rvm, disabling this will force rvm to never update rvm1_rvm_check_for_updates: True + +# GPG key verification, use an empty string if you want to skip this +# Note: Unless you know what you're doing, just keep it as is +# Identity proof: https://keybase.io/mpapis +# PGP message: https://rvm.io/mpapis.asc +rvm1_gpg_keys: 'D39DC0E3' diff --git a/tasks/rvm.yml b/tasks/rvm.yml index f97e2ca..855748a 100644 --- a/tasks/rvm.yml +++ b/tasks/rvm.yml @@ -29,7 +29,7 @@ - name: Import GPG keys command: 'gpg --keyserver hkp://keys.gnupg.net --recv-keys {{ rvm1_gpg_keys }}' changed_when: False - when: not rvm_binary.stat.exists + when: not rvm_binary.stat.exists and rvm1_gpg_keys - name: Install rvm command: > diff --git a/vars/main.yml b/vars/main.yml index ad75c6d..05bf820 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -20,5 +20,3 @@ rvm1_symlink_binaries: - 'testrb' rvm1_symlink_to: '/usr/local/bin' - -rvm1_gpg_keys: 'D39DC0E3'