Skip to content

Commit

Permalink
Merge pull request #15 from hasanen/import-gpg-keys
Browse files Browse the repository at this point in the history
Added task for GPG key imports. Fixes #14.
  • Loading branch information
nickjj committed Oct 29, 2014
2 parents 7b554cc + 4a6fc61 commit 8ccecc0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
5 changes: 5 additions & 0 deletions tasks/rvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
mode: 0755
when: not rvm_binary.stat.exists

- 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 and rvm1_gpg_keys

- name: Install rvm
command: >
{{ rvm1_temp_download_path }}/rvm-installer.sh {{ rvm1_rvm_version }}
Expand Down

0 comments on commit 8ccecc0

Please sign in to comment.