diff --git a/R/defaults/main.yml b/R/defaults/main.yml index f016fe6..51703b4 100644 --- a/R/defaults/main.yml +++ b/R/defaults/main.yml @@ -36,6 +36,9 @@ r_source_plugins_dest_dir: /var/cache/R r_base_packages_list: - r-base +# Same list as above, but without version numbers. +#r_base_packages_hold_list: + r_plugins_packages_list: - jags - r-cran-rjags diff --git a/R/tasks/main.yml b/R/tasks/main.yml index d86a725..d76005e 100644 --- a/R/tasks/main.yml +++ b/R/tasks/main.yml @@ -12,6 +12,13 @@ with_items: r_base_packages_list tags: [ 'r_software', 'r_pkg' ] +- name: When we install specific R deb packages, put them on hold + shell: apt-mark hold {{ item }} + with_items: r_base_packages_hold_list + 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 }} with_items: r_plugins_packages_list diff --git a/ubuntu-deb-general/tasks/manage_su_limits.yml b/ubuntu-deb-general/tasks/manage_su_limits.yml index bd2d774..e3b71b9 100644 --- a/ubuntu-deb-general/tasks/manage_su_limits.yml +++ b/ubuntu-deb-general/tasks/manage_su_limits.yml @@ -1,4 +1,4 @@ --- -- name: Fix debian/ubuntu broke behaviour. The su pam config does not load pam_limits +- name: Fix debian/ubuntu broken behaviour. The su pam config does not load pam_limits lineinfile: dest=/etc/pam.d/su line="session required pam_limits.so" insertafter="^#\ \(Replaces\ the\ use\ of\ /etc/limits.*$" tags: [ 'su', 'pam_limits']