dotfiles/playbooks/roles/common/tasks/anyenv.yml
2018-11-27 09:55:14 -05:00

37 lines
764 B
YAML

---
- name: Install anyenv
git:
repo: https://github.com/riywo/anyenv.git
dest: ~/.anyenv
- name: Ensure envs directory exists
file:
path: ~/.anyenv/envs/
state: directory
- name: Ensure anyenv-plugins directory exists
file:
path: ~/.anyenv/plugins/
state: directory
- name: Install pyenv
shell: ~/.anyenv/bin/anyenv install pyenv
args:
creates: ~/.anyenv/envs/pyenv
- name: Install rbenv
shell: ~/.anyenv/bin/anyenv install rbenv
args:
creates: ~/.anyenv/envs/rbenv
- name: Install nodenv
shell: ~/.anyenv/bin/anyenv install nodenv
args:
creates: ~/.anyenv/envs/nodenv
- name: Install anyenv-update
git:
repo: https://github.com/znz/anyenv-update.git
dest: ~/.anyenv/plugins/anyenv-update