refactor: use generic ansible modules service and package
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2021-06-05 15:30:39 +02:00
parent 8e54c0d907
commit 1031ea6778
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -23,7 +23,7 @@
register: __postgres_systemd
- name: Force systemd to re-read configs
systemd:
service:
daemon_reload: True
when: __postgres_systemd.changed
@ -35,7 +35,7 @@
- name: Ensure database is initialized
command: "/usr/pgsql-{{ __postgres_version }}/bin/postgresql-{{ __postgres_version }}-setup initdb"
when: not __pgdata_dir_version.stat.exists
- name: Override default pg_hba.conf with a clean one
template:
src: templates/postgresql/data/pg_hba.conf.j2