2023-09-06 11:25:37 +02:00
|
|
|
---
|
|
|
|
- name: Add HashiCorp GPG Key
|
|
|
|
ansible.builtin.get_url:
|
|
|
|
url: https://apt.releases.hashicorp.com/gpg
|
|
|
|
dest: /etc/apt/keyrings/hashicorp.asc
|
|
|
|
mode: 0640
|
2023-09-06 13:10:48 +02:00
|
|
|
become: true
|
2023-09-06 11:25:37 +02:00
|
|
|
|
|
|
|
- name: Add HashiCorp repository
|
|
|
|
ansible.builtin.apt_repository:
|
|
|
|
repo: "deb [signed-by=/etc/apt/keyrings/hashicorp.gpg] https://apt.releases.hashicorp.com {{ ansible_distribution_release }} main"
|
|
|
|
state: present
|
2023-09-06 13:10:48 +02:00
|
|
|
become: true
|