fix variable
This commit is contained in:
parent
3789517c77
commit
12f9ad4fa9
@ -22,14 +22,14 @@
|
|||||||
notify: __postgres_restart
|
notify: __postgres_restart
|
||||||
register: __postgres_systemd
|
register: __postgres_systemd
|
||||||
|
|
||||||
- name: just force systemd to reread configs (2.4 and above)
|
- name: Force systemd to re-read configs
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: True
|
daemon_reload: True
|
||||||
when: __postgres_systemd.changed
|
when: __postgres_systemd.changed
|
||||||
|
|
||||||
- name: Check if database is initialized
|
- name: Check if database is initialized
|
||||||
stat:
|
stat:
|
||||||
path: "{{ postgres_data_dir }}/PG_VERSION"
|
path: "{{ __postgres_data_dir }}/PG_VERSION"
|
||||||
register: __pgdata_dir_version
|
register: __pgdata_dir_version
|
||||||
|
|
||||||
- name: Ensure database is initialized
|
- name: Ensure database is initialized
|
||||||
|
Loading…
Reference in New Issue
Block a user