2022-09-24 00:13:49 +00:00
|
|
|
- name: Add R repository
|
|
|
|
block:
|
|
|
|
- name: R repo - apt key
|
|
|
|
ansible.builtin.get_url:
|
|
|
|
url: https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc
|
|
|
|
dest: /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
|
|
|
|
- name: R repo - url
|
|
|
|
ansible.builtin.apt_repository:
|
2022-09-28 10:55:23 +00:00
|
|
|
repo: "deb https://cloud.r-project.org/bin/linux/ubuntu {{ansible_distribution_release}}-cran40/"
|
|
|
|
state: present
|
2022-09-24 00:13:49 +00:00
|
|
|
- name: Install R
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name: r-base
|
|
|
|
state: latest
|