Parameterize superuser/group names

This commit is contained in:
Alex Zepeda
2016-09-04 00:29:08 -07:00
parent 340d7e9aa4
commit 2611f18e85
2 changed files with 10 additions and 4 deletions

View File

@@ -42,3 +42,9 @@ rvm1_gpg_key_server: 'hkp://keys.gnupg.net'
# autolib mode, see https://rvm.io/rvm/autolibs
rvm1_autolib_mode: 3
# Name of UID 0 user
root_user: 'root'
# Name of GID 0 group -- BSD systems typically use wheel
root_group: 'root'

View File

@@ -56,8 +56,8 @@
state: 'link'
src: '{{ rvm1_install_path }}/wrappers/default/{{ item }}'
dest: '{{ rvm1_symlink_to }}/{{ item }}'
owner: 'root'
group: 'root'
owner: '{{ root_user }}'
group: '{{ root_group }}'
when: not '--user-install' in rvm1_install_flags
with_items: '{{ rvm1_symlink_binaries }}'