diff --git a/R/tasks/r-installation.yml b/R/tasks/r-installation.yml index 91448e8..6ea0b67 100644 --- a/R/tasks/r-installation.yml +++ b/R/tasks/r-installation.yml @@ -9,7 +9,7 @@ - name: Remove the hold state from the debian R packages shell: apt-mark unhold {{ item }} - with_items: '( {{ r_base_packages_hold_list }} | default [] )' + with_items: '{{ r_base_packages_hold_list | default([]) }}' when: r_base_packages_hold_list is defined ignore_errors: True tags: [ 'r_software', 'r_pkg', 'r_pkg_hold' ] @@ -21,14 +21,14 @@ - name: When we install specific R deb packages, put them on hold shell: apt-mark hold {{ item }} - with_items: '( {{ r_base_packages_hold_list }} | default [] )' + with_items: '{{ r_base_packages_hold_list| default([]) }}' when: r_base_specific_version ignore_errors: True tags: [ 'r_software', 'r_pkg', 'r_pkg_hold' ] - name: Install the R additional modules from the deb repo apt: pkg={{ item }} state={{ r_packages_state }} force=yes - with_items: '( {{ r_plugins_packages_list }} | default [] )' + with_items: '{{ r_plugins_packages_list | default([]) }}' when: r_plugins_from_deb tags: [ 'r_software', 'r_pkg' ] @@ -61,7 +61,7 @@ - name: Get the R packages sources that need to be installed get_url: url={{ item.url }} dest={{ r_source_plugins_dest_dir }} - with_items: '( {{ r_plugins_from_sources }} | default [] )' + with_items: '{{ r_plugins_from_sources | default([]) }}' when: r_plugins_install_specific_source tags: [ 'r_software', 'r_pkg', 'r_plugins', 'r_plugins_version' ] @@ -71,7 +71,7 @@ register: install_s_plugins_result failed_when: "install_s_plugins_result.rc != 0 or 'had non-zero exit status' in install_s_plugins_result.stderr" changed_when: '"Added" in install_s_plugins_result.stdout' - with_items: '( {{ r_plugins_from_sources }} | default [] )' + with_items: '{{ r_plugins_from_sources | default([]) }}' when: r_plugins_install_specific_source ignore_errors: True tags: [ 'r_software', 'r_pkg', 'r_plugins', 'r_plugins_version' ] @@ -82,7 +82,7 @@ register: install_s_plugins_result failed_when: "install_s_plugins_result.rc != 0 or 'had non-zero exit status' in install_s_plugins_result.stderr" changed_when: '"Added" in install_s_plugins_result.stdout' - with_items: '( {{ r_plugins_from_sources }} | default [] )' + with_items: '{{ r_plugins_from_sources | default([]) }}' when: r_plugins_install_specific_source tags: [ 'r_software', 'r_pkg', 'r_plugins', 'r_plugins_version' ] @@ -92,7 +92,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 }} | default [] )' + with_items: '{{ r_plugins_list_to_install | default([]) }}' when: r_plugins_install_latest_source tags: [ 'r_software', 'r_pkg', 'r_plugins' ] @@ -102,7 +102,7 @@ register: install_github_plugins_result failed_when: "install_github_plugins_result.rc != 0 or 'had non-zero exit status' in install_github_plugins_result.stderr" changed_when: "'Added' in install_github_plugins_result.stdout" - with_items: '( {{ r_plugins_from_github }} | default [] )' + with_items: '{{ r_plugins_from_github | default([]) }}' when: r_plugins_from_github is defined tags: [ 'r_software', 'r_pkg', 'r_plugins', 'r_plugins_github' ] @@ -112,6 +112,6 @@ register: remove_plugins_result failed_when: remove_plugins_result.rc != 0 changed_when: "'Removed' in remove_plugins_result.stdout" - with_items: '( {{ r_plugins_list_to_remove }} | default [] )' + with_items: '{{ r_plugins_list_to_remove | default([]) }}' when: r_plugins_list_to_remove is defined tags: [ 'r_software', 'r_pkg', 'r_plugins' ]