Installs Erlang from a custom repository. By default it'll install the latest erlang
and erlang-manpages
packages available from Erlang Solutions repositories.
None.
Required variables:
erlang_packages_state
: State forapt
module, for defining if packages should be installed, upgraded to latest version or removed. Default tolatest
.erlang_additional_packages
: List of additional packages to install. Defaults to[erlang-manpages]
.erlang_repo
: Repository URL for package installation. Defaults tohttp://packages.erlang-solutions/
for Debian and tohttps://packages.erlang-solutions.com/
for Ubuntu.erlang_repo_key_url
: GPG key URL for repository validation. Defaults tohttps://packages.erlang-solutions.com/{{ ansible_distribution | lower }}/erlang_solutions.asc
.erlang_repo_key_server
: GPG key server URL for repository validation. Used in conjunction witherlang_repo_key_id
. If these two variables are defined, do not defineerlang_repo_key_url
.erlang_repo_key_id
: GPG key ID for repository validation. Used in conjunction witherlang_repo_key_server
. If these two variables are defined, do not defineerlang_repo_key_url
.erlang_pin
: Defines if theerlang_repo
will be pinned. Defaults totrue
.
Internal variables, avoid changing:
erlang_packages_force
: Forces package installation when packages are not authenticated. This is happening on Erlang-Solution's Debian repository. Defaults toyes
for Debian andno
for every other distribution.erlang_pin_priority
: Pin priority. Defaults to999
, so that theerlang_repo
as priority over other repositories except when it would downgrade the installed package.
None.
Tests can be ran on Debian Wheezy and Ubuntu Trusty boxes by executing "vagrant up".
- hosts: servers
roles:
- role: mtpereira.erlang
erlang_additional_packages:
- erlang-doc
- erlang-manpages
- erlang-mode
become: yes
BSD
Thanks to Erlang Solutions for the Erlang packages repository.