Skip to content

Commit

Permalink
Add database initialization toggle parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak committed Mar 18, 2024
1 parent f69fd14 commit e86b654
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions defaults/main/params.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ postgresql_service_enabled: true
postgresql_service_masked: false
postgresql_user: postgres
postgresql_group: postgres
postgresql_initdb: true
postgresql_waldir: "/var/lib/postgresql/wal"
postgresql_datadir: "/var/lib/postgresql/data"
postgresql_roles: []
Expand Down
1 change: 1 addition & 0 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
creates: "{{ _postgresql_datadir }}/PG_VERSION"
become: true
become_user: "{{ postgresql_user }}"
when: postgresql_initdb | bool

- name: Create PostgreSQL include directory
ansible.builtin.file:
Expand Down

0 comments on commit e86b654

Please sign in to comment.