summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: acce2ecd55db8055de6e0e5f29d2e0ccd8c5edaa (plain)
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
stages:
  - terraform
  - ansible

terraform-job:
  stage: terraform
  tags:
    - lxc
  script:
    - cd final
    - terraform init
    - terraform destroy --auto-approve || true
    - terraform apply --auto-approve || true
  artifacts:
    paths:
      - final/hosts

ansible-job:
  stage: ansible
  tags:
    - lxc
  script:
    - cd final
    - ansible-playbook -i hosts lamp.yml
  dependencies:
    - terraform-job