Refactor relative task paths into absolute path
This commit is contained in:
parent
2889413196
commit
1e7242427a
1 changed files with 112 additions and 111 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue