Refactor relative task paths into absolute path

This commit is contained in:
Tobias Reisinger 2026-11-10 19:13:50 +01:00
commit 1e7242427a
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE

View file

@ -1,6 +1,6 @@
---
- name: Set common facts
ansible.builtin.import_tasks: tasks/set-default-facts.yml
ansible.builtin.include_tasks: "{{ tasks_dir }}/set-default-facts.yml"
- name: Deploy {{ service_name }}
vars:
@ -8,9 +8,9 @@
compose: "{{ forgejo_runner_compose }}"
block:
- name: Import tasks to create service directory
ansible.builtin.import_tasks: tasks/steps/create-service-directory.yml
ansible.builtin.include_tasks: "{{ tasks_dir }}/steps/create-service-directory.yml"
- name: Import tasks to template compose file
ansible.builtin.import_tasks: tasks/steps/template-compose.yml
ansible.builtin.include_tasks: "{{ tasks_dir }}/steps/template-compose.yml"
- name: Copy the config
ansible.builtin.copy:
@ -24,11 +24,11 @@
register: forgejo_runner_env_file
- name: Import tasks create a .env file
ansible.builtin.import_tasks: tasks/steps/template-service-env.yml
ansible.builtin.include_tasks: "{{ tasks_dir }}/steps/template-service-env.yml"
- name: Import tasks to prompt for the registration token
ansible.builtin.import_tasks: tasks/prompt-registration-token.yml
ansible.builtin.import_tasks: prompt-registration-token.yml
when: not forgejo_runner_env_file.stat.exists or force_forgejo_runner_registration | default(False)
- name: Import start tasks for common service
ansible.builtin.import_tasks: tasks/start-common-service.yml
ansible.builtin.include_tasks: "{{ tasks_dir }}/start-common-service.yml"