102 lines
3 KiB
YAML
102 lines
3 KiB
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 - rbenv-aliases
|
|
git:
|
|
repo: https://github.com/tpope/rbenv-aliases
|
|
dest: ~/.anyenv/envs/rbenv/plugins/rbenv-aliases
|
|
|
|
- name: anyenv - nodejs
|
|
shell: ~/.anyenv/bin/anyenv install nodenv
|
|
args:
|
|
creates: ~/.anyenv/envs/nodenv
|
|
|
|
- name: anyenv - nodenv-aliases
|
|
git:
|
|
repo: https://github.com/nodenv/nodenv-aliases.git
|
|
dest: ~/.anyenv/envs/nodenv/plugins/nodenv-aliases
|
|
|
|
- name: anyenv - erlang
|
|
shell: ~/.anyenv/bin/anyenv install erlenv
|
|
args:
|
|
creates: ~/.anyenv/envs/erlenv
|
|
|
|
- name: anyenv - plugin dir
|
|
file:
|
|
path: ~/.anyenv/plugins
|
|
state: directory
|
|
|
|
- name: anyenv - update plugin
|
|
shell: git clone https://github.com/znz/anyenv-update.git ~/.anyenv/plugins/anyenv-update
|
|
args:
|
|
creates: ~/.anyenv/plugins/anyenv-update
|
|
|
|
- name: pyenv - virtualenv plugin
|
|
shell: git clone https://github.com/pyenv/pyenv-virtualenv.git ~/.anyenv/envs/pyenv/plugins/pyenv-virtualenv
|
|
args:
|
|
creates: ~/.anyenv/envs/pyenv/plugins/pyenv-virtualenv
|
|
|
|
- name: pyenv - default packages plugin
|
|
shell: git clone https://github.com/jawshooah/pyenv-default-packages.git ~/.anyenv/envs/pyenv/plugins/pyenv-default-packages
|
|
args:
|
|
creates: ~/.anyenv/envs/pyenv/plugins/pyenv-default-packages
|
|
|
|
- name: pyenv - symlink pyenv-defaults
|
|
file:
|
|
src: ~/.dotfiles/defaults/default-packages
|
|
dest: ~/.anyenv/envs/pyenv/default-packages
|
|
state: link
|
|
|
|
- name: rbenv - default packages plugin
|
|
shell: git clone https://github.com/rbenv/rbenv-default-gems ~/.anyenv/envs/rbenv/plugins/rbenv-default-gems
|
|
args:
|
|
creates: ~/.anyenv/envs/rbenv/plugins/rbenv-default-gems
|
|
|
|
- name: rbenv - symlink rbenv-defaults
|
|
file:
|
|
src: ~/.dotfiles/defaults/default-gems
|
|
dest: ~/.anyenv/envs/rbenv/default-gems
|
|
state: link
|
|
|
|
- name: nodenv - nvmrc plugin
|
|
shell: git clone https://github.com/ouchxp/nodenv-nvmrc.git ~/.anyenv/envs/nodenv/plugins/nodenv-nvmrc
|
|
args:
|
|
creates: ~/.anyenv/envs/nodenv/plugins/nodenv-nvmrc
|
|
|
|
- name: nodenv - jetbrains-npm
|
|
shell: git clone https://github.com/nodenv/jetbrains-npm ~/.anyenv/envs/nodenv/plugins/jetbrains-npm
|
|
args:
|
|
creates: ~/.anyenv/envs/nodenv/plugins/jetbrains-npm
|
|
|
|
- name: nodenv - jetbrains-yarn
|
|
shell: git clone https://github.com/tanmen/jetbrains-yarn ~/.anyenv/envs/nodenv/plugins/jetbrains-yarn
|
|
args:
|
|
creates: ~/.anyenv/envs/nodenv/plugins/jetbrains-yarn
|