parent
0ddb893b8d
commit
6cdaec53ac
@ -1,21 +1,17 @@
|
||||
- name: create ~/src
|
||||
file:
|
||||
path: ~/src
|
||||
state: directory
|
||||
|
||||
- name: download chruby
|
||||
get_url:
|
||||
url: https://github.com/postmodern/chruby/archive/v{{ version }}.tar.gz
|
||||
dest: ~/src/chruby-{{ version }}.tar.gz
|
||||
dest: ~/tmp/chruby-{{ version }}.tar.gz
|
||||
force: yes
|
||||
|
||||
- name: extract chruby
|
||||
unarchive:
|
||||
src: ~/src/chruby-{{ version }}.tar.gz
|
||||
dest: ~/src
|
||||
remote_src: yes
|
||||
tmp: ~/tmp/chruby-{{ version }}.tar.gz
|
||||
dest: ~/tmp
|
||||
remote_tmp: yes
|
||||
|
||||
- name: install chruby
|
||||
command: make install
|
||||
args:
|
||||
chdir: "{{ ansible_env.HOME }}/src/chruby-{{ version }}"
|
||||
chdir: "{{ ansible_env.HOME }}/tmp/chruby-{{ version }}"
|
||||
become: yes
|
||||
|
@ -1,16 +1,17 @@
|
||||
- name: download ruby-install
|
||||
get_url:
|
||||
url: https://github.com/postmodern/ruby-install/archive/v{{ version }}.tar.gz
|
||||
dest: ~/src/ruby-install-{{ version }}.tar.gz
|
||||
dest: ~/tmp/ruby-install-{{ version }}.tar.gz
|
||||
force: yes
|
||||
|
||||
- name: extract ruby-install
|
||||
unarchive:
|
||||
src: ~/src/ruby-install-{{ version }}.tar.gz
|
||||
dest: ~/src
|
||||
remote_src: yes
|
||||
tmp: ~/tmp/ruby-install-{{ version }}.tar.gz
|
||||
dest: ~/tmp
|
||||
remote_tmp: yes
|
||||
|
||||
- name: install ruby-install
|
||||
command: make install
|
||||
args:
|
||||
chdir: "{{ ansible_env.HOME }}/src/ruby-install-{{ version }}"
|
||||
chdir: "{{ ansible_env.HOME }}/tmp/ruby-install-{{ version }}"
|
||||
become: yes
|
||||
|
@ -0,0 +1,9 @@
|
||||
- name: download rustup
|
||||
get_url:
|
||||
url: https://sh.rustup.rs
|
||||
dest: ~/tmp/rustup-init.sh
|
||||
force: yes
|
||||
mode: a+x
|
||||
|
||||
- name: install rustup
|
||||
command: ~/tmp/rustup-init.sh -y
|
Loading…
Reference in new issue