-
Notifications
You must be signed in to change notification settings - Fork 8
/
rbenv.yml
26 lines (21 loc) · 624 Bytes
/
rbenv.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
- name: "rbenv - git clone."
git:
repo: 'https://github.com/rbenv/rbenv.git'
dest: '${HOME}/.rbenv'
- name: "rbenv build"
shell: 'cd ${HOME}/.rbenv && src/configure && make -C src'
- name: "rbenv - set path in bashrc"
lineinfile:
path: '${HOME}/.bashrc'
state: present
line: 'export PATH="$HOME/.rbenv/bin:$PATH"'
- name: "rbenv - set init in .bashrc"
lineinfile:
path: '${HOME}/.bashrc'
state: present
line: 'eval "$(rbenv init -)"'
- name: "rbenv - clone ruby-build."
git:
repo: 'https://github.com/rbenv/ruby-build.git'
dest: '${HOME}/.rbenv/plugins/ruby-build'