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
79cb5c3a
Commit
79cb5c3a
authored
Mar 07, 2016
by
Maruyama Takayuki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
roles/ruby: partial fix for ansible/ansible-modules-core issue 2936
parent
befdb8f6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
15 deletions
+23
-15
roles/ruby/tasks/main.yml
+23
-15
No files found.
roles/ruby/tasks/main.yml
View file @
79cb5c3a
...
@@ -2,36 +2,44 @@
...
@@ -2,36 +2,44 @@
-
name
:
is exists source archive
-
name
:
is exists source archive
command
:
ls -l "{{ruby_src_archive}}"
command
:
ls -l "{{ruby_src_archive}}"
ignore_errors
:
true
ignore_errors
:
true
register
:
alread
y_downloaded
register
:
rub
y_downloaded
-
name
:
already installed
#- name: download and extract
command
:
which ruby
# unarchive:
ignore_errors
:
true
# src: "{{ruby_src_url}}"
register
:
already_installed
# dest: "{{src_dir}}"
# copy: no
# when: ruby_downloaded|failed
-
name
:
download
get_url
:
url
:
"
{{ruby_src_url}}"
dest
:
"
{{ruby_src_archive}}"
when
:
ruby_downloaded|failed
become
:
yes
-
name
:
download and extract
-
name
:
extract
unarchive
:
command
:
/bin/tar xvf "{{ruby_src_archive}}" -C "{{src_dir}}"
src
:
"
{{ruby_src_url}}"
become
:
yes
dest
:
"
{{src_dir}}"
when
:
ruby_downloaded|failed
copy
:
no
when
:
not already_downloaded
-
name
:
chown
command
:
"
/bin/chown
-R
{{ansible_ssh_user}}
{{ruby_src_dir}}"
become
:
yes
-
name
:
configure
-
name
:
configure
command
:
./configure --prefix=/usr/
command
:
./configure --prefix=/usr/
args
:
args
:
chdir
:
"
{{ruby_src_dir}}"
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
:
"
{{ruby_src_dir}}"
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
:
"
{{ruby_src_dir}}"
become
:
yes
become
:
yes
when
:
not already_downloaded or not already_installed
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