Skip to content

Commit

Permalink
fix: update R task from connect role to match workbench one
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianBudelewski committed Oct 12, 2021
1 parent 58e215f commit e45ddcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/install-r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

- name: install | r-version (download)
get_url:
url: "{{ r_download_url }}/r-{{ item }}_1_{{ rstudio_connect_machine_map[ansible_machine] }}.deb"
dest: "{{ rstudio_connect_downloads_path }}/r-{{ item }}_1_amd64.deb"
url: "{{ r_download_url }}/r-{{ item }}_1_{{ rstudio_workbench_machine_map[ansible_machine] }}.deb"
dest: "{{ rstudio_workbench_downloads_path }}/r-{{ item }}_1_amd64.deb"
loop: "{{ r_versions }}"
tags:
- r-version-install
when: r_versions is defined

- name: install | r-version
apt:
deb: "{{ rstudio_connect_downloads_path }}/r-{{ item }}_1_amd64.deb"
deb: "{{ rstudio_workbench_downloads_path }}/r-{{ item }}_1_amd64.deb"
loop: "{{ r_versions }}"
tags:
- r-version-install
Expand Down
1 change: 1 addition & 0 deletions vars/_focal.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# vars file
---
rstudio_workbench_download_url: "https://download2.rstudio.org/server/bionic/{{ rstudio_workbench_machine_map[ansible_machine] }}/rstudio-workbench-{{ rstudio_workbench_version }}-{{ rstudio_workbench_machine_map[ansible_machine] }}.deb"
r_download_url: "https://cdn.rstudio.com/r/ubuntu-{{ ansible_lsb.release|replace('.','') }}/pkgs"

0 comments on commit e45ddcf

Please sign in to comment.