library/roles/R/tasks/r-installation.yml: Setup the R environment so that it finds the correct JDK.

This commit is contained in:
Andrea Dell'Amico 2017-06-27 17:52:36 +02:00
parent ae17604335
commit 52cacc0267
1 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,11 @@
when: r_install_cran_repo == 'present'
tags: [ 'r_software', 'r_profile', 'r_pkg' ]
- name: Configure the JDK environment
command: R CMD javareconf
ignore_errors: True
tags: [ 'r_software', 'r_profile', 'r_pkg', 'r_java' ]
- name: Install some packages needed by R packages when installed from source
apt: pkg={{ item }} state={{ r_packages_state }} update_cache=yes force=yes cache_valid_time=3600
with_items: '{{ r_distribution_required_packages | default([]) }}'