parent
0ddb893b8d
commit
6cdaec53ac
@ -1,21 +1,17 @@
|
|||||||
- name: create ~/src
|
|
||||||
file:
|
|
||||||
path: ~/src
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: download chruby
|
- name: download chruby
|
||||||
get_url:
|
get_url:
|
||||||
url: https://github.com/postmodern/chruby/archive/v{{ version }}.tar.gz
|
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
|
- name: extract chruby
|
||||||
unarchive:
|
unarchive:
|
||||||
src: ~/src/chruby-{{ version }}.tar.gz
|
tmp: ~/tmp/chruby-{{ version }}.tar.gz
|
||||||
dest: ~/src
|
dest: ~/tmp
|
||||||
remote_src: yes
|
remote_tmp: yes
|
||||||
|
|
||||||
- name: install chruby
|
- name: install chruby
|
||||||
command: make install
|
command: make install
|
||||||
args:
|
args:
|
||||||
chdir: "{{ ansible_env.HOME }}/src/chruby-{{ version }}"
|
chdir: "{{ ansible_env.HOME }}/tmp/chruby-{{ version }}"
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -1,16 +1,17 @@
|
|||||||
- name: download ruby-install
|
- name: download ruby-install
|
||||||
get_url:
|
get_url:
|
||||||
url: https://github.com/postmodern/ruby-install/archive/v{{ version }}.tar.gz
|
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
|
- name: extract ruby-install
|
||||||
unarchive:
|
unarchive:
|
||||||
src: ~/src/ruby-install-{{ version }}.tar.gz
|
tmp: ~/tmp/ruby-install-{{ version }}.tar.gz
|
||||||
dest: ~/src
|
dest: ~/tmp
|
||||||
remote_src: yes
|
remote_tmp: yes
|
||||||
|
|
||||||
- name: install ruby-install
|
- name: install ruby-install
|
||||||
command: make install
|
command: make install
|
||||||
args:
|
args:
|
||||||
chdir: "{{ ansible_env.HOME }}/src/ruby-install-{{ version }}"
|
chdir: "{{ ansible_env.HOME }}/tmp/ruby-install-{{ version }}"
|
||||||
become: yes
|
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