forked from ISTI-ansible-roles/ansible-roles
library/roles/R/tasks/r-installation.yml: Fix the with_items rules.
This commit is contained in:
parent
6035220c2e
commit
3e1d3335de
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
- name: Remove the hold state from the debian R packages
|
- name: Remove the hold state from the debian R packages
|
||||||
shell: apt-mark unhold {{ item }}
|
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
|
when: r_base_packages_hold_list is defined
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
tags: [ 'r_software', 'r_pkg', 'r_pkg_hold' ]
|
tags: [ 'r_software', 'r_pkg', 'r_pkg_hold' ]
|
||||||
|
@ -21,14 +21,14 @@
|
||||||
|
|
||||||
- name: When we install specific R deb packages, put them on hold
|
- name: When we install specific R deb packages, put them on hold
|
||||||
shell: apt-mark hold {{ item }}
|
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
|
when: r_base_specific_version
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
tags: [ 'r_software', 'r_pkg', 'r_pkg_hold' ]
|
tags: [ 'r_software', 'r_pkg', 'r_pkg_hold' ]
|
||||||
|
|
||||||
- name: Install the R additional modules from the deb repo
|
- name: Install the R additional modules from the deb repo
|
||||||
apt: pkg={{ item }} state={{ r_packages_state }} force=yes
|
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
|
when: r_plugins_from_deb
|
||||||
tags: [ 'r_software', 'r_pkg' ]
|
tags: [ 'r_software', 'r_pkg' ]
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
|
|
||||||
- name: Get the R packages sources that need to be installed
|
- name: Get the R packages sources that need to be installed
|
||||||
get_url: url={{ item.url }} dest={{ r_source_plugins_dest_dir }}
|
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
|
when: r_plugins_install_specific_source
|
||||||
tags: [ 'r_software', 'r_pkg', 'r_plugins', 'r_plugins_version' ]
|
tags: [ 'r_software', 'r_pkg', 'r_plugins', 'r_plugins_version' ]
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@
|
||||||
register: install_s_plugins_result
|
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"
|
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'
|
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
|
when: r_plugins_install_specific_source
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
tags: [ 'r_software', 'r_pkg', 'r_plugins', 'r_plugins_version' ]
|
tags: [ 'r_software', 'r_pkg', 'r_plugins', 'r_plugins_version' ]
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
register: install_s_plugins_result
|
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"
|
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'
|
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
|
when: r_plugins_install_specific_source
|
||||||
tags: [ 'r_software', 'r_pkg', 'r_plugins', 'r_plugins_version' ]
|
tags: [ 'r_software', 'r_pkg', 'r_plugins', 'r_plugins_version' ]
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
register: install_plugins_result
|
register: install_plugins_result
|
||||||
failed_when: "install_plugins_result.rc != 0 or 'had non-zero exit status' in install_plugins_result.stderr"
|
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"
|
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
|
when: r_plugins_install_latest_source
|
||||||
tags: [ 'r_software', 'r_pkg', 'r_plugins' ]
|
tags: [ 'r_software', 'r_pkg', 'r_plugins' ]
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@
|
||||||
register: install_github_plugins_result
|
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"
|
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"
|
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
|
when: r_plugins_from_github is defined
|
||||||
tags: [ 'r_software', 'r_pkg', 'r_plugins', 'r_plugins_github' ]
|
tags: [ 'r_software', 'r_pkg', 'r_plugins', 'r_plugins_github' ]
|
||||||
|
|
||||||
|
@ -112,6 +112,6 @@
|
||||||
register: remove_plugins_result
|
register: remove_plugins_result
|
||||||
failed_when: remove_plugins_result.rc != 0
|
failed_when: remove_plugins_result.rc != 0
|
||||||
changed_when: "'Removed' in remove_plugins_result.stdout"
|
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
|
when: r_plugins_list_to_remove is defined
|
||||||
tags: [ 'r_software', 'r_pkg', 'r_plugins' ]
|
tags: [ 'r_software', 'r_pkg', 'r_plugins' ]
|
||||||
|
|
Loading…
Reference in New Issue