From c2ab5c0384b9609c2c9c27cb281f9b76e00c4850 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 2 Jul 2021 16:35:20 +0200 Subject: [PATCH] Use the ansible variable for the distribution name. --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 0abc1d7..0b4360a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -13,7 +13,7 @@ r_install_cran_repo: False # This si the CRAN main repository, that contains the r-base-* packages r_cran_ubuntu_repo_key: 'E298A3A825C0D65DFD57CBB651716619E084DAB9' -r_cran_ubuntu_repo: 'deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/' +r_cran_ubuntu_repo: 'deb https://cloud.r-project.org/bin/linux/ubuntu {{ ansible_distribution_release }}-cran40/' # Use 'marutter/c2d4u3.5' for R 3.6 r_cran_ubuntu_packages_ppa_trusty: 'ppa:marutter/c2d4u' # 4.1, Ubuntu 18.04+