~xenrox/ansible

5ee78734f3dba08345cc666289a655c3ac35de0b — Thorben Günther 2 years ago 8b5870b
CI: Update build for molecule with vault

1. python-hvac allows reading vault secrets in ansible
2. Add secret for secretid and roleid
1 files changed, 7 insertions(+), 1 deletions(-)

M .build.yml
M .build.yml => .build.yml +7 -1
@@ 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