ansible-role-configure-post.../tasks/main.yml
2023-11-04 13:07:10 +01:00

27 lines
700 B
YAML

---
- 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