Split services.yml

This commit is contained in:
Wojciech Kozlowski 2022-10-06 22:04:43 +02:00
parent e44346975e
commit 17cd8d75c3
16 changed files with 22 additions and 18 deletions

View File

@ -0,0 +1,13 @@
---
- name: "Deploy services"
hosts: the_nine_worlds
vars:
- service_rproxy_hosts:
tasks:
- import_tasks: tasks/services/deploy/00-hosts.yml
- include_tasks: tasks/services/deploy/01-service.yml
with_items: "{{ host_services }}"
loop_control:
loop_var: service_name

View File

@ -0,0 +1,9 @@
---
- name: "Setup hosts for services"
hosts: the_nine_worlds
tasks:
- import_tasks: tasks/services/setup/00-podman.yml
- import_tasks: tasks/services/setup/01-zfs-datasets.yml
when: is_zfs
- import_tasks: tasks/services/setup/01-directories.yml

View File

@ -1,18 +0,0 @@
---
- name: "Deploy services"
# Before applying this to yggdrasil need handle zfs datasets
hosts: the_nine_worlds
vars:
- service_rproxy_hosts:
tasks:
- import_tasks: tasks/services/00-podman.yml
- import_tasks: tasks/services/01-hosts.yml
- import_tasks: tasks/services/02-zfs-datasets.yml
when: is_zfs
- import_tasks: tasks/services/02-directories.yml
- include_tasks: tasks/services/03-service.yml
with_items: "{{ host_services }}"
loop_control:
loop_var: service_name