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
|
register: __postgres_systemd
|
||||||
|
|
||||||
- name: Force systemd to re-read configs
|
- name: Force systemd to re-read configs
|
||||||
systemd:
|
service:
|
||||||
daemon_reload: True
|
daemon_reload: True
|
||||||
when: __postgres_systemd.changed
|
when: __postgres_systemd.changed
|
||||||
|
|
||||||
@ -35,7 +35,7 @@
|
|||||||
- name: Ensure database is initialized
|
- name: Ensure database is initialized
|
||||||
command: "/usr/pgsql-{{ __postgres_version }}/bin/postgresql-{{ __postgres_version }}-setup initdb"
|
command: "/usr/pgsql-{{ __postgres_version }}/bin/postgresql-{{ __postgres_version }}-setup initdb"
|
||||||
when: not __pgdata_dir_version.stat.exists
|
when: not __pgdata_dir_version.stat.exists
|
||||||
|
|
||||||
- name: Override default pg_hba.conf with a clean one
|
- name: Override default pg_hba.conf with a clean one
|
||||||
template:
|
template:
|
||||||
src: templates/postgresql/data/pg_hba.conf.j2
|
src: templates/postgresql/data/pg_hba.conf.j2
|
||||||
|
Loading…
Reference in New Issue
Block a user