-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmain.yml
35 lines (31 loc) · 812 Bytes
/
main.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
27
28
29
30
31
32
33
34
35
---
- name: Install ruby dependencies
apt: pkg=$item state=installed update-cache=yes
with_items:
- build-essential
- git-core
- libreadline6-dev
- libyaml-dev
- libsqlite3-dev
- sqlite3
- libgdbm-dev
- libncurses5-dev
- libtool
- bison
- libffi-dev
- libdigest-hmac-perl
- unzip
- zlib1g
- zlib1g-dev
- name: Download ruby
get_url: url=$ruby_url dest=/home/ubuntu/ruby-{{ ruby_version }}.tar
- name: Extract ruby
command: tar -zxf /home/ubuntu/ruby-$ruby_version.tar creates=/home/ubuntu/ruby-{{ ruby_version }}
- name: Make, configure, and install ruby
command: $item chdir=/home/ubuntu/ruby-$ruby_version
with_items:
- ./configure
- make
- sudo make install
- name: Create deploy user
user: name=deploy shell=/bin/bash