refactor: use generic ansible modules service and package
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8e54c0d907
commit
1031ea6778
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user