Improve reuse of tasks

This commit is contained in:
Tobias Reisinger 2023-06-13 22:49:27 +02:00
parent 13cf7a05ee
commit 3b5e27be2f
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
7 changed files with 8 additions and 7 deletions

View file

@ -2,8 +2,8 @@
- name: Deploy acme-dns
tags: acme-dns
block:
- import_tasks: create-service-directory.yml
- import_tasks: template-docker-compose.yml
- import_tasks: steps/create-service-directory.yml
- import_tasks: steps/template-docker-compose.yml
- name: Setting the service config path
ansible.builtin.set_fact:
@ -21,4 +21,4 @@
dest: "{{ (config_path, 'config.cfg') | path_join }}"
mode: "0600"
- import_tasks: template-site-config.yml
- import_tasks: steps/template-site-config.yml

View file

@ -4,7 +4,4 @@
- analytics
- umami
block:
- import_tasks: create-service-directory.yml
- import_tasks: template-docker-compose.yml
- import_tasks: template-service-env.yml
- import_tasks: template-site-config.yml
- import_tasks: deploy-common-service.yml

View file

@ -0,0 +1,4 @@
- import_tasks: steps/create-service-directory.yml
- import_tasks: steps/template-docker-compose.yml
- import_tasks: steps/template-service-env.yml
- import_tasks: steps/template-site-config.yml