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