library/roles/R/tasks/r-installation.yml: Fix other cases of empty variables.

This commit is contained in:
Andrea Dell'Amico 2016-03-08 19:06:09 +01:00
parent 7e8f11498d
commit 70c4f447da
1 changed files with 2 additions and 2 deletions

View File

@ -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' ]