Parameterize superuser/group names
This commit is contained in:
@@ -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
|
||||||
|
root_group: 'root'
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user