forked from ISTI-ansible-roles/ansible-roles
d4science-ghn-cluster/roles/dataminer_app: playbook that installs a dataminer webapp on top of a smartgears one.
library/roles/R/tasks/main.yml: Fix the install_github task.
This commit is contained in:
parent
ab01cc514d
commit
771abd8491
|
@ -15,12 +15,24 @@ r_cran_mirror_site: http://cran.mirror.garr.it/mirrors/CRAN/
|
||||||
r_base_specific_version: False
|
r_base_specific_version: False
|
||||||
r_base_pkg_version: 2.14.1
|
r_base_pkg_version: 2.14.1
|
||||||
r_packages_state: present
|
r_packages_state: present
|
||||||
|
r_needs_additional_distro_pkgs: False
|
||||||
r_plugins_from_deb: True
|
r_plugins_from_deb: True
|
||||||
r_plugins_install_latest_source: True
|
r_plugins_install_latest_source: True
|
||||||
r_plugins_install_specific_source: True
|
r_plugins_install_specific_source: True
|
||||||
|
|
||||||
r_source_plugins_dest_dir: /var/cache/R
|
r_source_plugins_dest_dir: /var/cache/R
|
||||||
|
|
||||||
|
# r_distribution_required_packages:
|
||||||
|
# - gdal-bin
|
||||||
|
# - dans-gdal-scripts
|
||||||
|
# - libgdal1-dev
|
||||||
|
# - libgeos-dev
|
||||||
|
# - libspatialite-dev
|
||||||
|
# - proj
|
||||||
|
# - proj-bin
|
||||||
|
# - proj-data
|
||||||
|
# - libproj-dev
|
||||||
|
|
||||||
r_base_packages_list:
|
r_base_packages_list:
|
||||||
- r-base
|
- r-base
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,12 @@
|
||||||
when: r_plugins_from_deb
|
when: r_plugins_from_deb
|
||||||
tags: [ 'r_software', 'r_pkg' ]
|
tags: [ 'r_software', 'r_pkg' ]
|
||||||
|
|
||||||
|
- name: Install some packages needed by R plugins when installed from source, if needed
|
||||||
|
apt: pkg={{ item }} state={{ r_packages_state }} update_cache=yes
|
||||||
|
with_items: r_distribution_required_packages
|
||||||
|
when: r_needs_additional_distro_pkgs
|
||||||
|
tags: [ 'r_software', 'r_pkg' ]
|
||||||
|
|
||||||
- name: Ensure that the R plugin sources directory exists
|
- name: Ensure that the R plugin sources directory exists
|
||||||
file: dest={{ r_source_plugins_dest_dir }} state=directory owner=root group=root
|
file: dest={{ r_source_plugins_dest_dir }} state=directory owner=root group=root
|
||||||
when: r_plugins_from_sources is defined
|
when: r_plugins_from_sources is defined
|
||||||
|
|
Loading…
Reference in New Issue