The official ansible RVM role to install and manage your Ruby versions.
MIT License
271
stars
136
forks
source link
Error while evaluating conditional (not ansible_check_mode and rvm1_gpg_keys != '' and (gpg_import is not defined or gpg_import.rc != 0)): 'dict object' has no attribute 'rc' #226
rvm1-ansible/tasks/rvm.yml, 'Import GPG keys from keyservers' on line 30 cause an error while evaluating conditional (not ansible_check_mode and rvm1_gpg_keys != '' and (gpg_import is not defined or gpg_import.rc != 0)): 'dict object' has no attribute 'rc'
I suggest :
when: not ansible_check_mode and rvm1_gpg_keys != '' and (gpg_import is not defined or (gpg_import.rc | default('') != 0))
rvm1-ansible/tasks/rvm.yml, 'Import GPG keys from keyservers' on line 30 cause an error while evaluating conditional (not ansible_check_mode and rvm1_gpg_keys != '' and (gpg_import is not defined or gpg_import.rc != 0)): 'dict object' has no attribute 'rc'
I suggest :
when: not ansible_check_mode and rvm1_gpg_keys != '' and (gpg_import is not defined or (gpg_import.rc | default('') != 0))