From c251dfbae6a220da4d2ebf7b786af1bf0cc655a4 Mon Sep 17 00:00:00 2001 From: Ditmar Visser Date: Thu, 5 Jun 2025 09:02:42 +0000 Subject: [PATCH] fix: working directory --- .gitea/workflows/opdracht-3.yaml | 3 +++ readme.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/opdracht-3.yaml b/.gitea/workflows/opdracht-3.yaml index a45a608..90ae8f9 100644 --- a/.gitea/workflows/opdracht-3.yaml +++ b/.gitea/workflows/opdracht-3.yaml @@ -13,6 +13,9 @@ jobs: terraform: name: Terraform Apply runs-on: ubuntu-latest + defaults: + run: + working-directory: ./opdracht-3 env: TF_VAR_esxi_hostname: ${{ secrets.ESXI_HOSTNAME }} diff --git a/readme.md b/readme.md index 0b663e4..4dcd2da 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ For the CI/CD pipelines [this website for Ansible](https://spacelift.io/blog/github-actions-ansible) and [this website for Terraform](https://spacelift.io/blog/github-actions-terraform) was used. -The Gitea runner is installed using the playbook in the `opdracht-2` directory. The Terraform state backend is installed using the same playbook. +The Gitea runner is installed using the playbook in the `opdracht-2` directory. The Terraform state backend is installed using the same playbook. Run this playbook using `ansible-playbook gitea-runner.yml -e @vault.yml --ask-vault-pass` Demo of assignment 2: