Files
ansible-tasks/umami.dbimport.yml
2026-03-15 16:04:42 +01:00

26 lines
717 B
YAML

---
# Import Umami Postgres SQL File
#
# Run:
# ansible-playbook -i inventory/hosts tasks/umami.db.yml
#
# Prepare:
# See readme.md and init your workspace
# This playbook will import the database for Umami. It will fetch the database dump from the specified destination, then import it into the database.
- hosts: all
gather_facts: true
pre_tasks:
- name: Build DB vars from umami_sites
include_role:
name: lsa.umami
tasks_from: db-vars.yml
vars:
postgres_import_drop_recreate: true
postgres_import_fetch_dest: "{{ __postgres_dump_fetch_dest | default ('inventories/client/files/sql/') }}"
tasks:
- include_tasks: /etc/ansible/roles/lsa.db/tasks/postgres/import.yml