forked from ISTI-ansible-roles/ansible-roles
library/roles/R/tasks/r-installation.yml: Remove the check that would skip the repetition of some tasks. It is not working.
This commit is contained in:
parent
4f911c74d8
commit
e7fa165d38
|
@ -65,7 +65,7 @@
|
|||
when: r_plugins_install_specific_source
|
||||
tags: [ 'r_software', 'r_pkg', 'r_plugins', 'r_plugins_version' ]
|
||||
|
||||
- name: Install R packages from the cran sources, specific versions. First try
|
||||
- name: Install R packages from the cran sources, specific versions. First round
|
||||
command: >
|
||||
Rscript --slave --no-save --no-restore-history -e "if (! ('{{ item.name }}' %in% installed.packages()[,'Package'])) { install.packages('{{ r_source_plugins_dest_dir }}/{{ item.source }}', repos = NULL, type='source'); print('Added'); } else if (packageVersion('{{ item.name }}') != '{{ item.version }}') { install.packages('{{ r_source_plugins_dest_dir }}/{{ item.source }}', repos = NULL, type='source'); print('Added'); } else { print('Already Installed'); }"
|
||||
register: install_s_plugins_result
|
||||
|
@ -85,7 +85,6 @@
|
|||
with_items: '{{ r_plugins_from_sources }}'
|
||||
when:
|
||||
- r_plugins_install_specific_source
|
||||
- "install_s_plugins_result.rc != 0 or 'had non-zero exit status' in install_s_plugins_result.stderr"
|
||||
tags: [ 'r_software', 'r_pkg', 'r_plugins', 'r_plugins_version' ]
|
||||
|
||||
- name: Install R packages from the cran sources repo, latest available version. Second try
|
||||
|
@ -97,7 +96,6 @@
|
|||
with_items: '{{ r_plugins_list_to_install }}'
|
||||
when:
|
||||
- r_plugins_install_latest_source
|
||||
- "install_plugins_result.rc != 0 or 'had non-zero exit status' in install_plugins_result.stderr"
|
||||
tags: [ 'r_software', 'r_pkg', 'r_plugins' ]
|
||||
|
||||
- name: Install R packages from github
|
||||
|
|
Loading…
Reference in New Issue