Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@

- name: Init DB on booted systems
when:
- not __postgresql_conf.stat.exists
- __postgresql_is_booted | bool
- not __postgresql_conf.stat.exists
- __postgresql_is_booted | bool
command:
cmd: postgresql-setup --initdb
creates: "{{ __postgresql_main_conf_file }}"
Expand All @@ -72,8 +72,8 @@
# out and replace with static values
- name: Init DB on non-booted systems
when:
- not __postgresql_conf.stat.exists
- not __postgresql_is_booted | bool
- not __postgresql_conf.stat.exists
- not __postgresql_is_booted | bool
shell:
cmd: |
set -euo pipefail
Expand Down
Loading