From f728a7f9bba07c974bea4e805294a622d1b932d4 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sat, 10 Sep 2022 15:10:06 -0700 Subject: [PATCH] Vault local endpoint --- docker-host/setup/tasks/vault.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker-host/setup/tasks/vault.yml b/docker-host/setup/tasks/vault.yml index df24c61..428bc26 100644 --- a/docker-host/setup/tasks/vault.yml +++ b/docker-host/setup/tasks/vault.yml @@ -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: