This commit is contained in:
phil 2023-11-04 13:07:10 +01:00
commit aca231c728
8 changed files with 86 additions and 0 deletions

26
tasks/main.yml Normal file
View file

@ -0,0 +1,26 @@
---
- name: Install autopostgresqlbackup
ansible.builtin.apt:
pkg: autopostgresqlbackup
update_cache: true
- name: Copy autopostgresqlbackup configuration
ansible.builtin.template:
src: autopostgresqlbackup.j2
dest: /etc/default/autopostgresqlbackup
mode: "0644"
- name: Copy autopostgresqlbackup postbackup script
ansible.builtin.template:
src: autopostgresqlbackup_post_script.j2
dest: "{{ autopostgresqlbackup_config.postbackup }}"
mode: "0755"
- name: Copy systemd override
ansible.builtin.copy:
src: systemd/override.conf
dest: /etc/systemd/system/postgresql@.service.d/
mode: "0644"
notify:
- Reload systemd
- Restart postgresql