Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed rvm installation by updating to gnupg2 #88

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ruby/rvm/tasks/gpg_keys.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: Check GPG keys
command: 'gpg --list-keys {{ item }}'
command: 'gpg2 --list-keys {{ item }}'
failed_when: no
changed_when: no
register: rvm_gpg_keys_checks
Expand All @@ -9,7 +9,7 @@
with_items: "{{ rvm_gpg_keys_list }}"

- name: Import GPG keys
command: 'gpg --keyserver {{ rvm_gpg_key_server }} --recv-keys {{ rvm_gpg_keys_list[item.0] }}'
command: 'gpg2 --keyserver {{ rvm_gpg_key_server }} --recv-keys {{ rvm_gpg_keys_list[item.0] }}'
ignore_errors: yes
register: rvm_import_gpg_keys_result
become: yes
Expand All @@ -23,7 +23,7 @@
when: item.item.1.rc != 0

- name: Alternative GPG keys
shell: 'curl -sSL {{ rvm_gpg_key_alternative_url }} | gpg --import -'
shell: 'curl -sSL {{ rvm_gpg_key_alternative_url }} | gpg2 --import -'
become: yes
become_user: "{{ rvm_user }}"
when: rvm_gpg_failed is defined and rvm_gpg_failed
1 change: 1 addition & 0 deletions ruby/rvm/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ rvm_packages:
- libxml2-dev
- libgmp-dev
- git-core
- gnupg2

rvm_gpg_keys_list: "{{ rvm_gpg_keys.split(' ')}}"