Skip to content

Commit

Permalink
Update "erlang_and_elixir" Ansible role.
Browse files Browse the repository at this point in the history
Update the "erlang_and_elixir" Ansible role to use the
"ansible.builtin.deb822_repository" module.
  • Loading branch information
damiendart committed Sep 24, 2024
1 parent cc1cc58 commit 277979c
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions roles/erlang_and_elixir/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,29 @@
# more information, please refer to the accompanying "UNLICENCE" file.

---
- name: 'Ensure the Erlang Solutions package signing key is present for APT'
- name: 'Ensure old Erlang Solutions package signing key is not present for APT'
ansible.builtin.apt_key:
state: 'present'
state: 'absent'
url: 'https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc'

- name: 'Ensure Erlang Solutions repository is present in APT sources list'
- name: 'Ensure old Erlang Solutions repository entry is not present in APT sources list'
ansible.builtin.apt_repository:
repo: 'deb https://packages.erlang-solutions.com/ubuntu {{ ansible_distribution_release }} contrib'
state: 'absent'

- name: 'Ensure Erlang Solutions repository is present in APT sources list'
ansible.builtin.deb822_repository:
components:
- 'contrib'
enabled: true
name: 'Erlang Solutions'
signed_by: 'https://packages.erlang-solutions.com/{{ ansible_distribution | lower }}/erlang_solutions.asc'
suites:
- '{{ ansible_distribution_release | lower }}'
state: 'present'
types:
- 'deb'
uris: 'https://packages.erlang-solutions.com/{{ ansible_distribution | lower }}'

- name: 'Ensure Erlang and Elixir packages are installed'
ansible.builtin.apt:
Expand Down

0 comments on commit 277979c

Please sign in to comment.