~xenrox/ansible

ref: 9d498636a95fce15d713e1be71155415acae60d3 ansible/.build.yml -rw-r--r-- 980 bytes
9d498636Thorben Günther borg: Improve backup script 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
image: archlinux
packages:
  - ansible
  - ansible-lint
  - docker
  - molecule
  - molecule-docker
  - python-dnspython
  - python-hvac
  - terraform
  - yamllint
secrets:
  - 010953bd-f940-4bfa-a374-3b39d349dcda
sources:
  - https://git.xenrox.net/~xenrox/ansible
environment:
  PY_COLORS: 1
triggers:
  - action: email
    condition: failure
    to: Thorben Günther <admin@xenrox.net>
tasks:
  - ansible-lint: |
      cd ansible
      ansible-lint
  - terraform: |
      cd ansible/terraform_hetzner
      terraform init -backend=false
      terraform validate
      cd ../terraform_vault
      terraform init -backend=false
      terraform validate
      cd ../terraform_keycloak
      terraform init -backend=false
      terraform validate
  - build-docker: |
      cd ansible/misc
      sudo systemctl start docker
      docker build -f Dockerfile -t archlinux-docker .
  - molecule: |
      set +x
      . ~/.vault-secret
      set -x
      cd ansible
      molecule test