Different tasks added
This commit is contained in:
26
umami.dbimport.yml
Normal file
26
umami.dbimport.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
# 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
|
||||
Reference in New Issue
Block a user