Add new roles to emma playbook
This commit is contained in:
parent
1a36730629
commit
957000d3c2
2 changed files with 187 additions and 34 deletions
139
plays/emma.yml
139
plays/emma.yml
|
|
@ -61,6 +61,37 @@
|
|||
webdav_password: "{{ vault_webdav_password }}"
|
||||
webdav_password_bcrypt: "{{ vault_webdav_password_bcrypt }}"
|
||||
|
||||
- name: Set up Gitea
|
||||
hosts: emma
|
||||
become: yes
|
||||
tags: gitea
|
||||
roles:
|
||||
- role: any.common.btrfs-subvolumes
|
||||
vars:
|
||||
subvolumes:
|
||||
# Data files and LFS are placed on RAID
|
||||
- filesystem_uuid: "{{ btrfs_raid.uuid }}"
|
||||
filesystem_path: "{{ btrfs_raid.path }}"
|
||||
name: "/gitea/data"
|
||||
- filesystem_uuid: "{{ btrfs_raid.uuid }}"
|
||||
filesystem_path: "{{ btrfs_raid.path }}"
|
||||
name: "/gitea/lfs"
|
||||
|
||||
# Repositories and database are stored in NVME
|
||||
- filesystem_uuid: "{{ btrfs_nvme.uuid }}"
|
||||
filesystem_path: "{{ btrfs_nvme.path }}"
|
||||
name: "/@rootfs/data/gitea/repositories"
|
||||
- filesystem_uuid: "{{ btrfs_nvme.uuid }}"
|
||||
filesystem_path: "{{ btrfs_nvme.path }}"
|
||||
name: "/@rootfs/data/gitea/postgres"
|
||||
|
||||
- role: any.software.gitea
|
||||
vars:
|
||||
gitea_data_dir: '{{ btrfs_raid.path }}/gitea/data'
|
||||
gitea_lfs_dir: '{{ btrfs_raid.path }}/gitea/lfs'
|
||||
gitea_repositories_dir: '{{ btrfs_nvme.path }}/data/gitea/repositories'
|
||||
postgres_data_dir: '{{ btrfs_nvme.path }}/data/gitea/postgres'
|
||||
|
||||
- name: Set up Otter
|
||||
hosts: emma
|
||||
become: yes
|
||||
|
|
@ -75,3 +106,111 @@
|
|||
- role: any.software.otter
|
||||
vars:
|
||||
data_dir: '{{ btrfs_nvme.path }}/data/otter/data'
|
||||
|
||||
- name: Set up Nefarious
|
||||
hosts: emma
|
||||
become: yes
|
||||
tags: nefarious
|
||||
roles:
|
||||
- role: any.common.btrfs-subvolumes
|
||||
vars:
|
||||
subvolumes:
|
||||
- filesystem_uuid: "{{ btrfs_raid.uuid }}"
|
||||
filesystem_path: "{{ btrfs_raid.path }}"
|
||||
name: "/nefarious/nefarious"
|
||||
- filesystem_uuid: "{{ btrfs_raid.uuid }}"
|
||||
filesystem_path: "{{ btrfs_raid.path }}"
|
||||
name: "/nefarious/jackett"
|
||||
- role: any.software.nefarious-podman
|
||||
vars:
|
||||
host_download_dir: "/mnt/data1/media"
|
||||
transmission_settings_path: "/etc/nefarious/transmission-settings.json"
|
||||
nefarious_config_dir: "/mnt/data1/nefarious/nefarious"
|
||||
jackett_data_dir: "/mnt/data1/nefarious/jackett"
|
||||
nefarious_admin_user: "{{ vault_nefarious_admin_user }}"
|
||||
nefarious_admin_pass: "{{ vault_nefarious_admin_pass }}"
|
||||
|
||||
- name: Set up Actual
|
||||
hosts: emma
|
||||
tags: actual
|
||||
roles:
|
||||
- role: any.common.btrfs-subvolumes
|
||||
vars:
|
||||
subvolumes:
|
||||
- filesystem_uuid: "{{ btrfs_nvme.uuid }}"
|
||||
filesystem_path: "{{ btrfs_nvme.path }}"
|
||||
name: "/@rootfs/data/actual/data"
|
||||
become: true
|
||||
- role: any.software.actual-podman
|
||||
vars:
|
||||
data_dir: '/data/actual/data'
|
||||
|
||||
- name: Set up Baikal
|
||||
hosts: emma
|
||||
tags: baikal
|
||||
roles:
|
||||
- role: any.common.btrfs-subvolumes
|
||||
vars:
|
||||
subvolumes:
|
||||
- filesystem_uuid: "{{ btrfs_nvme.uuid }}"
|
||||
filesystem_path: "{{ btrfs_nvme.path }}"
|
||||
name: "/@rootfs/data/baikal/config"
|
||||
become: true
|
||||
- role: any.common.btrfs-subvolumes
|
||||
vars:
|
||||
subvolumes:
|
||||
- filesystem_uuid: "{{ btrfs_nvme.uuid }}"
|
||||
filesystem_path: "{{ btrfs_nvme.path }}"
|
||||
name: "/@rootfs/data/baikal/Specific"
|
||||
become: true
|
||||
- role: any.software.baikal-podman
|
||||
vars:
|
||||
baikal_config_dir: '/data/baikal/config'
|
||||
baikal_specific_dir: '/data/baikal/Specific'
|
||||
|
||||
- name: Set up Syncthing
|
||||
hosts: emma
|
||||
tags: syncthing
|
||||
become: true
|
||||
roles:
|
||||
- role: any.common.btrfs-subvolumes
|
||||
vars:
|
||||
subvolumes:
|
||||
- filesystem_uuid: "{{ btrfs_raid.uuid }}"
|
||||
filesystem_path: "{{ btrfs_raid.path }}"
|
||||
name: "/syncthing/data"
|
||||
- filesystem_uuid: "{{ btrfs_raid.uuid }}"
|
||||
filesystem_path: "{{ btrfs_raid.path }}"
|
||||
name: "/syncthing/config"
|
||||
- filesystem_uuid: "{{ btrfs_raid.uuid }}"
|
||||
filesystem_path: "{{ btrfs_raid.path }}"
|
||||
name: "/syncthing/home"
|
||||
- role: any.software.syncthing
|
||||
vars:
|
||||
syncthing_data_dir: '/mnt/data1/syncthing/data'
|
||||
syncthing_home_dir: '/mnt/data1/syncthing/home'
|
||||
syncthing_config_dir: '/mnt/data1/syncthing/config'
|
||||
|
||||
- name: Set up Monica
|
||||
hosts: emma
|
||||
tags: monica
|
||||
roles:
|
||||
- role: any.common.btrfs-subvolumes
|
||||
vars:
|
||||
subvolumes:
|
||||
- filesystem_uuid: "{{ btrfs_nvme.uuid }}"
|
||||
filesystem_path: "{{ btrfs_nvme.path }}"
|
||||
name: "/@rootfs/data/monica/data"
|
||||
- filesystem_uuid: "{{ btrfs_nvme.uuid }}"
|
||||
filesystem_path: "{{ btrfs_nvme.path }}"
|
||||
name: "/@rootfs/data/monica/mariadb"
|
||||
become: true
|
||||
- role: any.software.monica-podman
|
||||
vars:
|
||||
monica_data_dir: '/data/monica/data'
|
||||
mariadb_data_dir: '/data/monica/mariadb'
|
||||
# - role: any.software.syncthing
|
||||
# vars:
|
||||
# syncthing_data_dir: '/mnt/data1/syncthing/data'
|
||||
# syncthing_home_dir: '/mnt/data1/syncthing/home'
|
||||
# syncthing_config_dir: '/mnt/data1/syncthing/config'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue