Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Set up the latest version of R in Ubuntu systems.
* `bash` (will not be installed)

#### Variables
* `r_cran_repo`: [default: `true`]: Whether or not to install R from cran repositories instead of the distribution ones

* `r_version_35`: [default: `false`, for Ubuntu >= `18.04` always `true`]: Whether or not to install R 3.5

Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
---
r_version_35: "{{ ansible_distribution_version is version('18.04', '>=') }}"

r_cran_repo: true
r_cran_mirror: https://cran.rstudio.com/
r_bioclite_url: https://bioconductor.org/biocLite.R

Expand Down
2 changes: 2 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# tasks file for r
---
- include: repository.yml
when:
- r_cran_repo == true
Copy link
Contributor

@FanchTheSystem FanchTheSystem Oct 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should remove the '== true' on this line to have it build on travis ci
Something like :

- include: repository.yml
  when:
    - r_cran_repo

As it is a boolean

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. Or maybe r_cran_repo | bool just to be safe

tags:
- configuration
- r
Expand Down