From 52cacc0267f7f8a586f73c051fa28e4acb0f0b4f Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 27 Jun 2017 17:52:36 +0200 Subject: [PATCH] library/roles/R/tasks/r-installation.yml: Setup the R environment so that it finds the correct JDK. --- R/tasks/r-installation.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/R/tasks/r-installation.yml b/R/tasks/r-installation.yml index 5d5b79bb..eee9c484 100644 --- a/R/tasks/r-installation.yml +++ b/R/tasks/r-installation.yml @@ -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([]) }}'