skip the gpg key import tasks in check mode
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
- name: Import GPG keys
|
- name: Import GPG keys
|
||||||
command: 'gpg --keyserver {{ rvm1_gpg_key_server }} --recv-keys {{ rvm1_gpg_keys }}'
|
command: 'gpg --keyserver {{ rvm1_gpg_key_server }} --recv-keys {{ rvm1_gpg_keys }}'
|
||||||
changed_when: False
|
changed_when: False
|
||||||
when: rvm1_gpg_keys != ''
|
when: not ansible_check_mode and rvm1_gpg_keys != ''
|
||||||
register: gpg_result
|
register: gpg_result
|
||||||
until: gpg_result.rc == 0
|
until: gpg_result.rc == 0
|
||||||
retries: 5
|
retries: 5
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
- name: Import GPG keys the other way
|
- name: Import GPG keys the other way
|
||||||
shell: curl -sSL https://rvm.io/mpapis.asc | gpg --import -
|
shell: curl -sSL https://rvm.io/mpapis.asc | gpg --import -
|
||||||
when: rvm1_gpg_keys != '' and gpg_result.rc != 0
|
when: not ansible_check_mode and rvm1_gpg_keys != '' and gpg_result.rc != 0
|
||||||
|
|
||||||
- name: Install rvm
|
- name: Install rvm
|
||||||
command: >
|
command: >
|
||||||
|
|||||||
Reference in New Issue
Block a user