mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 19:28:34 +01:00
31 lines
512 B
YAML
31 lines
512 B
YAML
- name: Copy Hashicorp APT-key
|
|
copy:
|
|
src: hashicorp-archive-keyring.gpg
|
|
dest: /usr/share/keyrings/
|
|
mode: 0644
|
|
notify:
|
|
- apt update
|
|
|
|
- name: Add hashicorp apt repo
|
|
copy:
|
|
src: hashicorp.list
|
|
dest: /etc/apt/sources.list.d/
|
|
mode: 0644
|
|
notify:
|
|
- apt update
|
|
|
|
- meta: flush_handlers
|
|
|
|
- name: Install vault
|
|
apt:
|
|
name: vault
|
|
state: present
|
|
|
|
- name: Template config
|
|
template:
|
|
src: "{{ item }}"
|
|
dest: "/etc/vault.d/"
|
|
with_items:
|
|
- vault.hcl
|
|
- vault.env
|