ansible-edda/plays/services/yggdrasil.yml

63 lines
1.8 KiB
YAML

- name: "services : yggdrasil"
hosts: "yggdrasil"
tasks:
- name: "set service volumes"
ansible.builtin.set_fact:
services_yggdrasil_services:
- "lrproxy"
- "database"
- "cloud"
- "git"
- "notes"
services_yggdrasil_volumes:
lrproxy:
etc-letsencrypt:
database:
wal:
extra_zfs_properties:
recordsize: "8K"
data:
extra_zfs_properties:
recordsize: "8K"
logbias: "throughput"
cloud:
nextcloud:
data:
git:
data:
notes:
data:
tags: "always"
- name: "user_datasets"
ansible.builtin.include_role:
name: "user_datasets"
apply:
tags:
- "services:user_datasets"
- "services:user_datasets:{{ services_service_name }}"
- "services:{{ services_service_name }}"
- "services:{{ services_service_name }}:user_datasets"
vars:
services_service_volumes: "{{ services_yggdrasil_volumes[services_service_name] }}"
loop: "{{ services_yggdrasil_services }}"
loop_control:
loop_var: "services_service_name"
tags: "always"
- name: "user_setup"
ansible.builtin.include_role:
name: "user_setup"
apply:
tags:
- "services:user_setup"
- "services:user_setup:{{ services_service_name }}"
- "services:{{ services_service_name }}"
- "services:{{ services_service_name }}:user_setup"
vars:
services_service_volumes: "{{ services_yggdrasil_volumes[services_service_name] }}"
loop: "{{ services_yggdrasil_services }}"
loop_control:
loop_var: "services_service_name"
tags: "always"