From 70c4f447dac9c44839c7daacb55168aa148720cf Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 8 Mar 2016 19:06:09 +0100 Subject: [PATCH] library/roles/R/tasks/r-installation.yml: Fix other cases of empty variables. --- R/tasks/r-installation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/tasks/r-installation.yml b/R/tasks/r-installation.yml index 6ea0b675..b7cc76a4 100644 --- a/R/tasks/r-installation.yml +++ b/R/tasks/r-installation.yml @@ -39,7 +39,7 @@ - name: Install some packages needed by R packages when installed from source apt: pkg={{ item }} state={{ r_packages_state }} update_cache=yes force=yes - with_items: '{{ r_distribution_required_packages }}' + with_items: '{{ r_distribution_required_packages | default([]) }}' when: r_needs_additional_distro_pkgs tags: [ 'r_software', 'r_pkg' ] @@ -54,7 +54,7 @@ register: install_plugins_result failed_when: "install_plugins_result.rc != 0 or 'had non-zero exit status' in install_plugins_result.stderr" changed_when: "'Added' in install_plugins_result.stdout" - with_items: '{{ r_plugins_list_to_install }}' + with_items: '{{ r_plugins_list_to_install | default([]) }}' when: r_plugins_install_latest_source ignore_errors: True tags: [ 'r_software', 'r_pkg', 'r_plugins' ]