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

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

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