Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 9378faba authored by Jean-François HOVINNE's avatar Jean-François HOVINNE
Browse files

fix: Use keyring instead of apt_key (fixes #23)

parent 0ebca7f0
No related branches found
No related tags found
1 merge request!17fix: Use keyring instead of apt_key (fixes #23)
......@@ -7,15 +7,17 @@
when: ansible_distribution == 'Amazon'
- name: Import key (APT)
ansible.builtin.apt_key:
ansible.builtin.get_url:
url: "{{ hashicorp_repository }}/gpg"
state: present
dest: "{{ hashicorp_keyring }}"
mode: '0644'
force: true
become: true
when: ansible_os_family == 'Debian'
- name: Enable hashicorp repository (APT)
ansible.builtin.apt_repository:
repo: "deb [arch=amd64] {{ hashicorp_repository }} {{ ansible_distribution_release | lower }} main"
repo: "deb [arch=amd64 signed-by={{ hashicorp_keyring }}] {{ hashicorp_repository }} {{ ansible_distribution_release | lower }} main"
filename: hashicorp
state: present
become: true
......
---
hashicorp_repository: "https://apt.releases.hashicorp.com"
hashicorp_keyring: "/usr/share/keyrings/hashicorp-archive-keyring.asc"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment