Split services.yml
This commit is contained in:
parent
e44346975e
commit
17cd8d75c3
13
playbooks/services-deploy.yml
Normal file
13
playbooks/services-deploy.yml
Normal 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
|
9
playbooks/services-setup.yml
Normal file
9
playbooks/services-setup.yml
Normal 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
|
@ -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
|
Loading…
Reference in New Issue
Block a user