Merge pull request #105 from inferiorhumanorgans/root-param

Parameterize superuser/group names
This commit is contained in:
Paul Montero
2016-09-09 12:51:07 -05:00
committed by GitHub
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 # autolib mode, see https://rvm.io/rvm/autolibs
rvm1_autolib_mode: 3 rvm1_autolib_mode: 3
# Name of UID 0 user
root_user: 'root'
# Name of GID 0 group -- BSD systems typically use wheel instead of root
root_group: '{{ root_user }}'

View File

@@ -50,17 +50,17 @@
changed_when: '"Successfully installed bundler" in bundler_install.stdout' changed_when: '"Successfully installed bundler" in bundler_install.stdout'
become: yes become: yes
become_user: '{{ rvm1_user }}' become_user: '{{ rvm1_user }}'
- name: Symlink ruby related binaries on the system path - name: Symlink ruby related binaries on the system path
file: file:
state: 'link' state: 'link'
src: '{{ rvm1_install_path }}/wrappers/default/{{ item }}' src: '{{ rvm1_install_path }}/wrappers/default/{{ item }}'
dest: '{{ rvm1_symlink_to }}/{{ item }}' dest: '{{ rvm1_symlink_to }}/{{ item }}'
owner: 'root' owner: '{{ root_user }}'
group: 'root' group: '{{ root_group }}'
when: not '--user-install' in rvm1_install_flags when: not '--user-install' in rvm1_install_flags
with_items: '{{ rvm1_symlink_binaries }}' with_items: '{{ rvm1_symlink_binaries }}'
- name: Detect if ruby version can be deleted - name: Detect if ruby version can be deleted
command: '{{ rvm1_rvm }} {{ rvm1_delete_ruby }} do true' command: '{{ rvm1_rvm }} {{ rvm1_delete_ruby }} do true'
changed_when: False changed_when: False