mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-03 23:26:58 +02:00
Update to 2022-08-31 13:00
This commit is contained in:
20
roles/vault/tasks/conf.yml
Normal file
20
roles/vault/tasks/conf.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
|
||||
- name: Generate self-signed certificate
|
||||
import_tasks: ../includes/create_selfsigned_cert.yml
|
||||
vars:
|
||||
cert_path: "{{ vault_root_dir }}/tls/vault.crt"
|
||||
cert_key_path: "{{ vault_root_dir }}/tls/vault.key"
|
||||
cert_key_group: "{{ vault_user }}"
|
||||
cert_key_mode: 640
|
||||
tags: vault
|
||||
|
||||
- name: Deploy vault configuration
|
||||
template:
|
||||
src: vault.hcl.j2
|
||||
dest: "{{ vault_root_dir }}/etc/vault.hcl"
|
||||
owner: "{{ vault_user }}"
|
||||
group: "{{ vault_user }}"
|
||||
mode: 0400
|
||||
notify: restart vault
|
||||
tags: vault
|
Reference in New Issue
Block a user