Skip to content

Commit

Permalink
fix apt key handling
Browse files Browse the repository at this point in the history
  • Loading branch information
resmo committed Feb 5, 2023
1 parent 667e547 commit 38d2d5c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions roles/common/tasks/debian.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
- name: Add Hashicorp GPG key
apt_key:
ansible.builtin.get_url:
url: https://apt.releases.hashicorp.com/gpg
state: present
dest: /etc/apt/trusted.gpg.d/hashicorp-archive-keyring.asc

- name: Add Hashicorp apt repository
apt_repository:
repo: deb [arch=amd64] {{ hashi_common__apt_repo }} {{ ansible_distribution_release }} main
ansible.builtin.apt_repository:
filename: hashicorp
repo: deb [signed-by=/etc/apt/trusted.gpg.d/hashicorp-archive-keyring.asc] {{ hashi_common__apt_repo }} {{ ansible_distribution_release }} main
state: present

0 comments on commit 38d2d5c

Please sign in to comment.