mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 06:28:34 +01:00
add: vault pki basics
This commit is contained in:
30
roles/vault-pki/tasks/main.yaml
Normal file
30
roles/vault-pki/tasks/main.yaml
Normal 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
|
||||
Reference in New Issue
Block a user