ansible-edda/plays/services/yggdrasil.yml

63 lines
1.8 KiB
YAML
Raw Normal View History

2022-12-12 23:49:20 +01:00
- 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"
2022-12-13 00:19:39 +01:00
- name: "user_datasets"
2022-12-12 23:49:20 +01:00
ansible.builtin.include_role:
2022-12-13 00:19:39 +01:00
name: "user_datasets"
2022-12-12 23:49:20 +01:00
apply:
tags:
2022-12-13 00:19:39 +01:00
- "services:user_datasets"
- "services:user_datasets:{{ services_service_name }}"
- "services:{{ services_service_name }}"
- "services:{{ services_service_name }}:user_datasets"
2022-12-12 23:49:20 +01:00
vars:
services_service_volumes: "{{ services_yggdrasil_volumes[services_service_name] }}"
loop: "{{ services_yggdrasil_services }}"
loop_control:
loop_var: "services_service_name"
tags: "always"
2022-12-13 00:19:39 +01:00
- name: "user_setup"
2022-12-12 23:49:20 +01:00
ansible.builtin.include_role:
2022-12-13 00:19:39 +01:00
name: "user_setup"
2022-12-12 23:49:20 +01:00
apply:
tags:
2022-12-13 00:19:39 +01:00
- "services:user_setup"
- "services:user_setup:{{ services_service_name }}"
- "services:{{ services_service_name }}"
- "services:{{ services_service_name }}:user_setup"
2022-12-12 23:49:20 +01:00
vars:
services_service_volumes: "{{ services_yggdrasil_volumes[services_service_name] }}"
loop: "{{ services_yggdrasil_services }}"
loop_control:
loop_var: "services_service_name"
tags: "always"