Sha256: 83b07b172ce03bf5f90fd42b592579b8a97cacce403869f7e07e2d41d258b980

Contents?: true

Size: 625 Bytes

Versions: 1

Compression:

Stored size: 625 Bytes

Contents

---
- name: Download Ruby {{ ruby_version }} source
  get_url: url={{ ruby_src_url }} dest={{ ansible_env.HOME }}

- name: Extract Ruby source
  unarchive: src={{ ruby_src_file }}
  args:
    dest: "{{ ansible_env.HOME }}"
    creates: "{{ ruby_src_dir }}"
    copy: no

- name: Configure Ruby
  command: ./configure chdir={{ ruby_src_dir }}
  args:
    creates: "{{ ruby_src_dir}}/Makefile"

- name: Build Ruby
  command: make chdir={{ ruby_src_dir }}
  args:
    creates: "{{ ruby_src_dir}}/ruby"

- name: Install Ruby
  become: yes
  command: make install chdir={{ ruby_src_dir }}
  args:
    creates: /usr/local/bin/ruby

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
arkenstone-0.2.0 lib/arkenstone/templates/ansible/roles/ruby/tasks/main.yml