Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to disable binary symlink #94

Merged
merged 1 commit into from
Mar 26, 2022
Merged
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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ rvm1_gpg_key_server: 'hkp://pool.sks-keyservers.net'

# autolib mode, see https://rvm.io/rvm/autolibs
rvm1_autolib_mode: 3

# Symlink binaries to system path
rvm1_symlink: true
```

## Example playbooks
Expand Down
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ root_user: 'root'

# Name of GID 0 group -- BSD systems typically use wheel instead of root
root_group: '{{ root_user }}'

# Symlink binaries to system path
rvm1_symlink: true
4 changes: 2 additions & 2 deletions tasks/rubies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
dest: '{{ rvm1_symlink_to }}/{{ item }}'
owner: '{{ root_user }}'
group: '{{ root_group }}'
when: not '--user-install' in rvm1_install_flags
when: not '--user-install' in rvm1_install_flags and rvm1_symlink
with_items: '{{ rvm1_symlink_binaries }}'

- name: Symlink bundler binaries on the system path
Expand All @@ -59,7 +59,7 @@
dest: '{{ rvm1_symlink_to }}/{{ item }}'
owner: '{{ root_user }}'
group: '{{ root_group }}'
when: not '--user-install' in rvm1_install_flags and rvm1_bundler_install
when: not '--user-install' in rvm1_install_flags and rvm1_bundler_install and rvm1_symlink
with_items: '{{ rvm1_symlink_bundler_binaries }}'

- name: Detect if ruby version can be deleted
Expand Down