Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erichard/ansible-db-pull
Ansible role to sync remote/local database
https://github.com/erichard/ansible-db-pull
Last synced: 2 days ago
JSON representation
Ansible role to sync remote/local database
- Host: GitHub
- URL: https://github.com/erichard/ansible-db-pull
- Owner: erichard
- Created: 2017-11-30T12:56:54.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-04T15:25:42.000Z (about 2 years ago)
- Last Synced: 2024-11-15T19:31:01.602Z (2 months ago)
- Size: 12.7 KB
- Stars: 2
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Ansible DB-pull role
====================Sync local PostgreSQL or MySQL database with remote.
Requirements
------------The local system need to have either `pg_dump` and `pg_reload` command or `mysql` and `mysqldump`.
Role Variables
--------------The `defaults` vars declared in this module:
```
db_pull_remote_backup_path: /tmp/db-pull
db_pull_local_backup_path: /tmp/db-pull
db_pull_keep_backup: 5db_pull_remote_database_user: postgres
db_pull_remote_database_host: localhost
db_pull_remote_database_name: postgres
db_pull_remote_database_password: root
db_pull_remote_database_port: 5432db_pull_local_database_user: postgres
db_pull_local_database_host: localhost
db_pull_local_database_name: postgres
db_pull_local_database_password: root
db_pull_local_database_port: 5432db_pull_database_type: postgres
db_pull_skip_restore: false
```Example Playbook
----------------Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: all
roles:
- { role: db-pull }License
-------MIT
Author Information
------------------* ansible-db-pull, written by Erwan Richard