Refactor relative task paths into absolute path
This commit is contained in:
parent
2889413196
commit
1e7242427a
3 changed files with 112 additions and 111 deletions
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: Import prepare tasks for common service
|
||||
ansible.builtin.import_tasks: tasks/prepare-common-service.yml
|
||||
ansible.builtin.include_tasks: "{{ tasks_dir }}/prepare-common-service.yml"
|
||||
- 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"
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
---
|
||||
- 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"
|
||||
when: compose is defined
|
||||
|
||||
- name: Import tasks to 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"
|
||||
when: env is defined
|
||||
|
||||
- name: Import tasks to restore volume
|
||||
ansible.builtin.import_tasks: tasks/restore-volumes.yml
|
||||
ansible.builtin.include_tasks: "{{ tasks_dir }}/restore-volumes.yml"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: Import tasks to template the site for the reverse proxy
|
||||
ansible.builtin.include_tasks: tasks/steps/template-site-config.yml
|
||||
ansible.builtin.include_tasks: "{{ tasks_dir }}/steps/template-site-config.yml"
|
||||
when: svc.domain is defined
|
||||
- name: Import tasks to start the service
|
||||
ansible.builtin.import_tasks: tasks/steps/start-service.yml
|
||||
ansible.builtin.include_tasks: "{{ tasks_dir }}/steps/start-service.yml"
|
||||
|
|
|
|||
Loading…
Reference in a new issue