107 lines
3.3 KiB
YAML
107 lines
3.3 KiB
YAML
---
|
|
- name: "services : zfs"
|
|
hosts: "zfs"
|
|
|
|
roles:
|
|
- role: "services/datasets/system"
|
|
tags:
|
|
- "services:datasets"
|
|
- "services:datasets:system"
|
|
|
|
tasks:
|
|
- name: "datasets : user"
|
|
ansible.builtin.include_role:
|
|
name: "services/datasets/user"
|
|
apply:
|
|
tags:
|
|
- "services:{{ services_service_name }}"
|
|
- "services:datasets"
|
|
- "services:datasets:user"
|
|
- "services:datasets:user:{{ services_service_name }}"
|
|
- "services:{{ services_service_name }}:datasets:user"
|
|
loop: "{{ services_host_services | dict2items | map(attribute='key') }}"
|
|
loop_control:
|
|
loop_var: "services_service_name"
|
|
tags: "always"
|
|
|
|
- name: "services : asgard"
|
|
hosts: "asgard"
|
|
|
|
roles:
|
|
- role: "services/setup/system"
|
|
tags:
|
|
- "services:setup"
|
|
- "services:setup:system"
|
|
|
|
tasks:
|
|
- name: "setup : user"
|
|
ansible.builtin.include_role:
|
|
name: "services/setup/user"
|
|
apply:
|
|
tags:
|
|
- "services:{{ services_service_name }}"
|
|
- "services:setup"
|
|
- "services:setup:user"
|
|
- "services:setup:user:{{ services_service_name }}"
|
|
- "services:{{ services_service_name }}:setup:user"
|
|
loop: "{{ services_host_services | dict2items | map(attribute='key') }}"
|
|
loop_control:
|
|
loop_var: "services_service_name"
|
|
tags: "always"
|
|
|
|
- name: "deploy"
|
|
ansible.builtin.include_role:
|
|
name: "services/deploy/{{ services_service_name }}"
|
|
apply:
|
|
tags:
|
|
- "services:{{ services_service_name }}"
|
|
- "services:deploy"
|
|
- "services:deploy:{{ services_service_name }}"
|
|
- "services:{{ services_service_name }}:deploy"
|
|
loop: "{{ services_host_services | dict2items | map(attribute='key') }}"
|
|
loop_control:
|
|
loop_var: "services_service_name"
|
|
tags: "always"
|
|
|
|
- name: "services : yggdrasil"
|
|
hosts: "yggdrasil"
|
|
|
|
roles:
|
|
- role: "services/datasets/backups/system"
|
|
when: the_nine_worlds_production | bool
|
|
tags:
|
|
- "services:datasets"
|
|
- "services:datasets:backups"
|
|
- "services:datasets:backups:system"
|
|
|
|
tasks:
|
|
- name: "datasets : backups : user"
|
|
ansible.builtin.include_role:
|
|
name: "services/datasets/backups/user"
|
|
apply:
|
|
tags:
|
|
- "services:{{ services_service_name }}"
|
|
- "services:datasets"
|
|
- "services:datasets:backups"
|
|
- "services:datasets:backups:user"
|
|
- "services:datasets:backups:user:{{ services_service_name }}"
|
|
- "services:{{ services_service_name }}:datasets:backups:user"
|
|
loop: "{{ services_host_services | dict2items | map(attribute='key') }}"
|
|
loop_control:
|
|
loop_var: "services_service_name"
|
|
tags: "always"
|
|
|
|
- name: "backups"
|
|
ansible.builtin.include_role:
|
|
name: "services/backups"
|
|
apply:
|
|
tags:
|
|
- "services:{{ services_service_name }}"
|
|
- "services:backups"
|
|
- "services:backups:{{ services_service_name }}"
|
|
- "services:{{ services_service_name }}:backups"
|
|
loop: "{{ services_host_services | dict2items | map(attribute='key') }}"
|
|
loop_control:
|
|
loop_var: "services_service_name"
|
|
tags: "always"
|