From 5ee78734f3dba08345cc666289a655c3ac35de0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Fri, 3 Sep 2021 12:35:19 +0200 Subject: [PATCH] CI: Update build for molecule with vault 1. python-hvac allows reading vault secrets in ansible 2. Add secret for secretid and roleid --- .build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.build.yml b/.build.yml index c1264b3..e86cf10 100644 --- a/.build.yml +++ b/.build.yml @@ -6,8 +6,11 @@ packages: - molecule - molecule-docker - python-dnspython - - yamllint + - python-hvac - terraform + - yamllint +secrets: + - a288580e-1e06-4706-a391-31a472513fa1 sources: - https://git.xenrox.net/~xenrox/ansible environment: @@ -35,5 +38,8 @@ tasks: sudo systemctl start docker docker build -f Dockerfile -t archlinux-docker . - molecule: | + set +x + . ~/.vault-secret + set -x cd ansible molecule test -- 2.44.0