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

46 lines
1.1 KiB
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
- name: Install Erlang prerequisite APT packages
become: true
apt:
state: present
update_cache: true
cache_valid_time: 86400 # One day
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
- name: Install asdf Erlang plugin
2022-12-02 20:16:45 +00:00
shell:
cmd: asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
2022-12-02 19:10:38 +00:00
creates: ~/.asdf/plugins/erlang
2022-12-02 20:16:45 +00:00
executable: /usr/bin/zsh
2022-12-02 19:10:38 +00:00
- name: Install Elixir prerequisite APT packages
become: true
apt:
state: present
update_cache: true
cache_valid_time: 86400 # One day
pkg:
- unzip
- name: Install asdf Elixir plugin
2022-12-02 20:16:45 +00:00
shell:
cmd: asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
2022-12-02 19:10:38 +00:00
creates: ~/.asdf/plugins/elixir
2022-12-02 20:16:45 +00:00
executable: /usr/bin/zsh