ansible-edda/playbooks/music.yml

53 lines
1.9 KiB
YAML

---
- name: "music : yggdrasil"
hosts: "yggdrasil"
roles:
- role: "music/datasets/user"
tags:
- "music:datasets"
- "music:datasets:user"
- role: "music/datasets/collection"
tags:
- "music:datasets"
- "music:datasets:collection"
- role: "music/user"
tags: "music:user"
vars:
music_user_public_key_file: "\
{% if (the_nine_worlds_production | bool) %}\
~/.ssh/yggdrasil.pub\
{% else %}\
~/.ssh/debian-virt.pub\
{% endif %}"
- role: "music/collection"
tags: "music:collection"
- role: "music/rip"
tags: "music:rip"
- role: "backups/snapshots/user"
vars:
backups_snapshots_user_name: "{{ music_user_name }}"
backups_snapshots_user_data_dataset: "{{ music_user_data_dataset }}"
backups_snapshots_user_backup_dataset: "{{ music_user_backups_snapshots_data_dataset }}"
backups_snapshots_user_recursive: "{{ music_user_backups_snapshots_recursive }}"
backups_snapshots_user_skip_parent: "{{ music_user_backups_snapshots_skip_parent }}"
tags:
- "music:backups"
- "music:backups:snapshots"
- "music:backups:snapshots:user"
- role: "backups/restic/user"
vars:
backups_restic_user_name: "{{ music_user_name }}"
backups_restic_user_use_dataset: "{{ 'zfs' in group_names }}"
backups_restic_user_data_dataset: "{{ music_user_data_dataset }}"
backups_restic_user_data_directory: "{{ music_user_data_directory }}"
backups_restic_user_data_exclude_list: []
backups_restic_user_aws_bucket_prefix: "the-nine-worlds---{{ music_user_name }}"
tags:
- "music:backups"
- "music:backups:restic"
- "music:backups:restic:user"
- role: "music/org"
tags: "music:org"
vars:
music_org_nextcloud_ip_address: "{{ services_all_services.lrproxy.address }}"