This repository has been archived on 2024-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
setup/roles/asdf/tasks/main.yml

39 lines
991 B
YAML
Raw Normal View History

2022-12-02 19:10:38 +00:00
- name: Install asdf
git:
repo: https://github.com/asdf-vm/asdf.git
dest: ~/.asdf
2023-02-20 20:49:55 +00:00
tags: update
- name: Install prerequisite APT packages
2022-12-02 19:10:38 +00:00
become: true
apt:
pkg:
- build-essential
- autoconf
- m4
- libncurses5-dev
- libwxgtk3.0-gtk3-dev
- libwxgtk-webview3.0-gtk3-dev
- libgl1-mesa-dev
- libglu1-mesa-dev
- libpng-dev
- libssh-dev
- unixodbc-dev
- xsltproc
- fop
- libxml2-utils
- libncurses-dev
- openjdk-11-jdk
2023-02-20 20:49:55 +00:00
- unzip
2022-12-02 19:10:38 +00:00
- name: Install asdf Erlang plugin
2022-12-02 20:16:45 +00:00
shell:
2022-12-02 20:21:32 +00:00
cmd: "~/.asdf/bin/asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git"
2022-12-02 19:10:38 +00:00
creates: ~/.asdf/plugins/erlang
- name: Install asdf Elixir plugin
2022-12-02 20:16:45 +00:00
shell:
2022-12-02 20:21:32 +00:00
cmd: "~/.asdf/bin/asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git"
2022-12-02 19:10:38 +00:00
creates: ~/.asdf/plugins/elixir
2023-03-04 13:28:09 +00:00
- name: Copy asdf.bashrc
copy:
src: "{{ role_path }}/files/asdf.bashrc"
dest: ~/.bashrc.d/asdf.bashrc