forked from ISTI-ansible-roles/ansible-roles
d4science-ghn-cluster/group_vars/dataminer_dev: Two configuration files were missing. More cleanup.
d4science-ghn-cluster/group_vars/statistical_dev: Install R and packages on the statistical dev node.
This commit is contained in:
parent
39a12b2936
commit
4a3538349d
|
@ -59,7 +59,7 @@
|
||||||
command: >
|
command: >
|
||||||
Rscript --slave --no-save --no-restore-history -e "if (! ('{{ item.plugin_name }}' %in% installed.packages()[,'Package'])) { require(devtools); require(methods) ; options(repos='{{ r_cran_mirror_site }}/') ; install_github('{{ item.plugin_name }}', '{{ item.github_user }}'); print('Added'); } else { print('Already Installed'); }"
|
Rscript --slave --no-save --no-restore-history -e "if (! ('{{ item.plugin_name }}' %in% installed.packages()[,'Package'])) { require(devtools); require(methods) ; options(repos='{{ r_cran_mirror_site }}/') ; install_github('{{ item.plugin_name }}', '{{ item.github_user }}'); print('Added'); } else { print('Already Installed'); }"
|
||||||
register: install_github_plugins_result
|
register: install_github_plugins_result
|
||||||
failed_when: "install_github_plugins_result.rc != 0 or 'had non-zero exit status' in install_s_plugins_result.stderr"
|
failed_when: "install_github_plugins_result.rc != 0 or 'had non-zero exit status' in install_github_plugins_result.stderr"
|
||||||
changed_when: "'Added' in install_github_plugins_result.stdout"
|
changed_when: "'Added' in install_github_plugins_result.stdout"
|
||||||
with_items: r_plugins_from_github
|
with_items: r_plugins_from_github
|
||||||
when: r_plugins_from_github is defined
|
when: r_plugins_from_github is defined
|
||||||
|
|
Loading…
Reference in New Issue