More asdf changes
This commit is contained in:
parent
77d724cc03
commit
4bf4c7169f
3 changed files with 36 additions and 38 deletions
|
@ -1,37 +0,0 @@
|
|||
---
|
||||
- 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
|
||||
|
35
playbooks/roles/common/tasks/asdf.yml
Normal file
35
playbooks/roles/common/tasks/asdf.yml
Normal file
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
- name: Install asdf
|
||||
git:
|
||||
repo: https://github.com/asdf-vm/asdf.git
|
||||
dest: ~/.asdf
|
||||
|
||||
- name: Ensure asdf got installed
|
||||
file:
|
||||
path: ~/.asdf
|
||||
state: directory
|
||||
|
||||
- name: asdf - python
|
||||
shell: ~/.asdf/bin/asdf plugin-add python
|
||||
args:
|
||||
creates: ~/.asdf/plugins/python
|
||||
|
||||
- name: asdf - ruby
|
||||
shell: ~/.asdf/bin/asdf plugin-add ruby
|
||||
args:
|
||||
creates: ~/.asdf/plugins/ruby
|
||||
|
||||
- name: asdf - ruby
|
||||
shell: ~/.asdf/bin/asdf plugin-add nodejs
|
||||
args:
|
||||
creates: ~/.asdf/plugins/nodejs
|
||||
|
||||
- name: asdf - erlang
|
||||
shell: ~/.asdf/bin/asdf plugin-add erlang
|
||||
args:
|
||||
creates: ~/.asdf/plugins/erlang
|
||||
|
||||
- name: asdf - elixir
|
||||
shell: ~/.asdf/bin/asdf plugin-add elixir
|
||||
args:
|
||||
creates: ~/.asdf/plugins/elixir
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- import_tasks: anyenv.yml
|
||||
- import_tasks: asdf.yml
|
||||
- import_tasks: neovim.yml
|
||||
- import_tasks: rust.yml
|
||||
- import_tasks: tmux.yml
|
||||
|
|
Loading…
Add table
Reference in a new issue