Vault local endpoint

This commit is contained in:
shockrah 2022-09-10 15:10:06 -07:00
parent 27838518c6
commit f728a7f9bb

View File

@ -1,17 +1,18 @@
---
- hosts: leftcoastlab
become: yes
tasks:
- name: Pull In Vars
include_vars:
dir: ../vars
- name: Create Vault Bind Root
become: yes
file:
path: /opt/vault
state: directory
- name: Ensure Vault Bind directories in place
become: yes
file:
path: "/opt/vault/{{item}}"
state: directory
@ -21,6 +22,7 @@
- file
- name: Create Vault Config
become: yes
template:
src: ../templates/vault-config.json.j2
dest: /opt/vault/config/vault.json
@ -36,6 +38,8 @@
- /opt/vault/logs:/vault/logs
- /opt/vault/file:/vault/file
- /opt/vault/config:/vault/config
env:
VAULT_ADDR: http://127.0.0.1:8200
capabilities:
- IPC_LOCK
entrypoint: