45 lines
1,017 B
YAML
45 lines
1,017 B
YAML
---
|
|
- name: Install anyenv
|
|
git:
|
|
repo: https://github.com/anyenv/anyenv
|
|
dest: ~/.anyenv
|
|
|
|
- name: Ensure anyenv got installed
|
|
file:
|
|
path: ~/.anyenv
|
|
state: directory
|
|
|
|
- name: Ensure anyenv is initialized
|
|
shell: ~/.anyenv/bin/anyenv install --force-init
|
|
args:
|
|
creates: ~/.config/anyenv/anyenv-install
|
|
|
|
- name: anyenv - pyenv
|
|
shell: ~/.anyenv/bin/anyenv install pyenv
|
|
args:
|
|
creates: ~/.anyenv/envs/pyenv
|
|
|
|
- name: anyenv - rbenv
|
|
shell: ~/.anyenv/bin/anyenv install rbenv
|
|
args:
|
|
creates: ~/.anyenv/envs/rbenv
|
|
|
|
- name: anyenv - rbenv-gemset
|
|
git:
|
|
repo: https://github.com/jf/rbenv-gemset
|
|
dest: ~/.anyenv/envs/rbenv/plugins/rbenv-gemset
|
|
|
|
- name: anyenv - nodejs
|
|
shell: ~/.anyenv/bin/anyenv install nodenv
|
|
args:
|
|
creates: ~/.anyenv/envs/nodenv
|
|
|
|
- name: anyenv - erlang
|
|
shell: ~/.anyenv/bin/anyenv install erlenv
|
|
args:
|
|
creates: ~/.anyenv/envs/erlenv
|
|
|
|
- name: anyenv - elixir
|
|
shell: ~/.anyenv/bin/anyenv install exenv
|
|
args:
|
|
creates: ~/.anyenv/envs/exenv
|