fix internal var name
This commit is contained in:
parent
682d293d45
commit
3789517c77
@ -30,11 +30,11 @@
|
|||||||
- 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
|
||||||
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
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ postgres_user }}"
|
become_user: "{{ postgres_user }}"
|
||||||
become: True
|
become: True
|
||||||
|
Loading…
Reference in New Issue
Block a user