diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b7d8996..8769e7a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -35,7 +35,7 @@ plan: changes: - terraform.tf - terraform.tfvars - - main.yml + - tasks/main.yml apply: stage: apply @@ -67,7 +67,7 @@ apply: changes: - terraform.tf - terraform.tfvars - - main.yml + - tasks/main.yml when: manual ansible-apply: @@ -80,14 +80,14 @@ ansible-apply: script: - apt update && apt install ansible -y - ansible-galaxy install -r $CI_PROJECT_DIR/group_vars/requirements.yml - - ansible-playbook $CI_PROJECT_DIR/main.yml + - ansible-playbook $CI_PROJECT_DIR/tasks/main.yml needs: - apply only: changes: - terraform.tf - terraform.tfvars - - main.yml + - tasks/main.yml destroy: stage: destroy @@ -115,7 +115,7 @@ destroy: changes: - terraform.tf - terraform.tfvars - - main.yml + - tasks/main.yml when: manual ansible-update: @@ -125,7 +125,7 @@ ansible-update: script: - apt update && apt install ansible -y - ansible-galaxy install -r $CI_PROJECT_DIR/group_vars/requirements.yml - - ansible-playbook $CI_PROJECT_DIR/update.yml + - ansible-playbook $CI_PROJECT_DIR/tasks/update.yml rules: - if: $CI_PIPELINE_SOURCE == "schedule" when: always diff --git a/main.yml b/tasks/main.yml similarity index 100% rename from main.yml rename to tasks/main.yml diff --git a/update.yml b/tasks/update.yml similarity index 100% rename from update.yml rename to tasks/update.yml