Add vault_cacert to fbsd vault calls

This commit is contained in:
Amarpreet Minhas 2021-08-30 17:39:24 -04:00
parent 679f43468d
commit 83a13333c9
2 changed files with 4 additions and 3 deletions

View file

@ -83,9 +83,9 @@
executable: /usr/local/bin/bash
environment:
VAULT_ADDR: https://vault.service.masked.name:8200
VAULT_TOKEN: "{{ lookup('file', lookup('env', 'HOME') + '/.vault-token') }}"
VAULT_FORMAT: json
VAULT_CACERT: /etc/ssl/certs/MaskedName_Root_CA.crt
VAULT_FORMAT: json
VAULT_TOKEN: "{{ lookup('file', lookup('env', 'HOME') + '/.vault-token') }}"
register: cert_data
when: exp.rc != 0

View file

@ -43,8 +43,9 @@
executable: /usr/local/bin/bash
environment:
VAULT_ADDR: https://vault.service.masked.name:8200
VAULT_TOKEN: "{{ lookup('file', lookup('env', 'HOME') + '/.vault-token') }}"
VAULT_CACERT: /etc/ssl/certs/MaskedName_Root_CA.crt
VAULT_FORMAT: json
VAULT_TOKEN: "{{ lookup('file', lookup('env', 'HOME') + '/.vault-token') }}"
register: cert_data
when: exp.rc != 0