Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-playbook
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Maruyama Takayuki
gitlab-playbook
Commits
aae4a04f
Commit
aae4a04f
authored
Mar 04, 2016
by
Maruyama
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
roles/ruby: バージョンなど別ファイルへ
parent
351647df
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
5 deletions
+27
-5
roles/ruby/tasks/main.yml
+19
-5
roles/ruby/vars/main.yml
+8
-0
No files found.
roles/ruby/tasks/main.yml
View file @
aae4a04f
---
---
-
name
:
is exists source archive
command
:
ls -l "{{ruby_src_archive}}"
ignore_errors
:
true
register
:
already_downloaded
-
name
:
already installed
command
:
which ruby
ignore_errors
:
true
register
:
already_installed
-
name
:
download and extract
-
name
:
download and extract
unarchive
:
unarchive
:
src
:
https://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.8.tar.gz
src
:
"
{{ruby_src_url}}"
dest
:
/tmp/
dest
:
"
{{src_dir}}"
copy
:
no
copy
:
no
when
:
not already_downloaded
-
name
:
configure
-
name
:
configure
command
:
/tmp/ruby-2.1.8
/configure --prefix=/usr/
command
:
.
/configure --prefix=/usr/
args
:
args
:
chdir
:
/tmp/ruby-2.1.8
chdir
:
"
{{ruby_src_dir}}"
when
:
not already_downloaded or not already_installed
-
name
:
make
-
name
:
make
command
:
/usr/bin/make
command
:
/usr/bin/make
args
:
args
:
chdir
:
/tmp/ruby-2.1.8
chdir
:
"
{{ruby_src_dir}}"
when
:
not already_downloaded or not already_installed
-
name
:
install
-
name
:
install
command
:
/usr/bin/make install
command
:
/usr/bin/make install
args
:
args
:
chdir
:
/tmp/ruby-2.1.8
chdir
:
/tmp/ruby-2.1.8
become
:
yes
become
:
yes
when
:
not already_downloaded or not already_installed
roles/ruby/vars/main.yml
0 → 100644
View file @
aae4a04f
---
ruby_version
:
2.1.8
ruby_dir
:
"
ruby-{{ruby_version}}"
src_dir
:
/usr/local/src
ruby_src_dir
:
"
/usr/local/src/{{ruby_dir}}"
ruby_src_archive
:
"
{{ruby_src_dir}}.tar.gz"
ruby_src_url
:
"
https://cache.ruby-lang.org/pub/ruby/2.1/{{ruby_dir}}.tar.gz"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment