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
2023-03-04 14:28:09 +01:00

38 lines
991 B
YAML

- name: Install asdf
git:
repo: https://github.com/asdf-vm/asdf.git
dest: ~/.asdf
tags: update
- name: Install prerequisite APT packages
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
- unzip
- name: Install asdf Erlang plugin
shell:
cmd: "~/.asdf/bin/asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git"
creates: ~/.asdf/plugins/erlang
- name: Install asdf Elixir plugin
shell:
cmd: "~/.asdf/bin/asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git"
creates: ~/.asdf/plugins/elixir
- name: Copy asdf.bashrc
copy:
src: "{{ role_path }}/files/asdf.bashrc"
dest: ~/.bashrc.d/asdf.bashrc