homelab/plays/emma.yml

63 lines
1.5 KiB
YAML

- name: Set up static IP
hosts: emma
become: yes
roles:
- role: any.common.static-ip
vars:
interface: 'enp1s0'
static_ip: '192.168.0.2'
broadcast_ip: '192.168.0.255'
router_ip: '192.168.0.1'
- any.common.ssh
- any.tools.ufw
tags: networking
- name: Configure BTRFS RAID
hosts: emma
become: yes
roles:
- any.common.raid
tags: raid
- name: Set up Jellyfin
hosts: emma
become: yes
roles:
- any.software.jellyfin
tags: jellyfin
- name: Set up Miniflux
hosts: emma
become: yes
tags: miniflux
roles:
- role: any.common.btrfs-subvolumes
vars:
subvolumes:
- filesystem_uuid: "{{ btrfs_nvme.uuid }}"
filesystem_path: "{{ btrfs_nvme.path }}"
name: "/@rootfs/data/miniflux/postgres"
- role: any.software.miniflux-podman
vars:
postgres_data_dir: '/data/miniflux/postgres'
- name: Set up WebDAV
hosts: emma
become: yes
tags: webdav
roles:
- role: any.common.btrfs-subvolumes
vars:
subvolumes:
- filesystem_uuid: "{{ btrfs_raid.uuid }}"
filesystem_path: "{{ btrfs_raid.path }}"
name: "/webdav/data"
- role: any.software.webdav
vars:
webdav_version: '5.7.4'
data_dir: '{{ btrfs_raid.path }}/webdav/data'
webdav_user: "{{ vault_webdav_user }}"
webdav_password: "{{ vault_webdav_password }}"
webdav_password_bcrypt: "{{ vault_webdav_password_bcrypt }}"