feat: Allow to backup postgresql
This commit is contained in:
parent
5f9a70824d
commit
0d9174b512
@ -35,4 +35,5 @@ borgmatic_passphrase: ""
|
|||||||
borgmatic_actions: {}
|
borgmatic_actions: {}
|
||||||
|
|
||||||
borgmatic_mariadb_enabled: false
|
borgmatic_mariadb_enabled: false
|
||||||
|
borgmatic_postgresql_enabled: false
|
||||||
borgmatic_restore_first: false
|
borgmatic_restore_first: false
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
name: borgmatic.timer
|
name: borgmatic.timer
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Activer et démarrer le service
|
- name: S'assurer que le service est désactivé
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
enabled: false
|
enabled: false
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
group: root
|
group: root
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
become: true
|
become: true
|
||||||
notify: Activer et démarrer le service
|
notify: S'assurer que le service est désactivé
|
||||||
|
|
||||||
- name: Déployer le service et la planification
|
- name: Déployer le service et la planification
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
@ -59,3 +59,11 @@ mariadb_databases:
|
|||||||
format: sql
|
format: sql
|
||||||
add_drop_database: true
|
add_drop_database: true
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if borgmatic_postgresql_enabled %}
|
||||||
|
postgresql_databases:
|
||||||
|
- name: all
|
||||||
|
username: postgres
|
||||||
|
format: plain
|
||||||
|
add_drop_database: true
|
||||||
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user