aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/vault/tasks/main.yaml
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2024-07-31 11:10:19 +0200
committerpmikus <peter.mikus@protonmail.ch>2024-07-31 11:10:19 +0200
commitecf7bf7fde0ec1af9db3b884cae5ecfcd7a8b5bf (patch)
treedc77df657cfd093ff078b6d9f749308d9210930a /fdio.infra.ansible/roles/vault/tasks/main.yaml
parent07f1016c807694d10b06a9d90313bf310f8bac79 (diff)
feat(ansible): env variables for nomad and vault
Signed-off-by: Peter Mikus <peter.mikus@protonmail.ch> Change-Id: I8a27c6ae832237947db6d28c052af0d15cac19a0
Diffstat (limited to 'fdio.infra.ansible/roles/vault/tasks/main.yaml')
-rw-r--r--fdio.infra.ansible/roles/vault/tasks/main.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/fdio.infra.ansible/roles/vault/tasks/main.yaml b/fdio.infra.ansible/roles/vault/tasks/main.yaml
index 3fceadfb4a..5a8ac282d5 100644
--- a/fdio.infra.ansible/roles/vault/tasks/main.yaml
+++ b/fdio.infra.ansible/roles/vault/tasks/main.yaml
@@ -118,6 +118,17 @@
# tags:
# - vault-conf
+- name: Vault CLI Environment Variables
+ ansible.builtin.lineinfile:
+ path: "/etc/profile.d/vault.sh"
+ line: "{{ item }}"
+ mode: 0644
+ create: true
+ loop:
+ - "export VAULT_ADDR=http://vault.service.consul:8200"
+ tags:
+ - vault-conf-env
+
- name: Conf - System.d Script
ansible.builtin.template:
src: "vault_systemd.service.j2"