fix variable

This commit is contained in:
Robert Kaussow 2018-10-16 00:27:43 +02:00
parent 3789517c77
commit 12f9ad4fa9

View File

@ -22,14 +22,14 @@
notify: __postgres_restart
register: __postgres_systemd
- name: just force systemd to reread configs (2.4 and above)
- name: Force systemd to re-read configs
systemd:
daemon_reload: True
when: __postgres_systemd.changed
- name: Check if database is initialized
stat:
path: "{{ postgres_data_dir }}/PG_VERSION"
path: "{{ __postgres_data_dir }}/PG_VERSION"
register: __pgdata_dir_version
- name: Ensure database is initialized