add: vault pki basics

This commit is contained in:
2023-03-28 09:18:24 +02:00
parent 63f70d07c7
commit 8ae16a65df
9 changed files with 687 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
- 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