13 lines
567 B
YAML
13 lines
567 B
YAML
# install hashicorp vault for Debian/Ubuntu
|
|
---
|
|
- name: install hashicorp archive gpg key
|
|
become: true
|
|
ansible.builtin.command:
|
|
cmd: wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
|
|
|
|
- name: enable hasicorp repo for debian
|
|
ansible.builtin.apt_repository:
|
|
repo: "deb [arch={{ ansible_architecture }} signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com {{ ansible_distribution_release }} main"
|
|
state: present
|
|
update_cache: false
|