Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Commit

Permalink
Issue geerlingguy#146: Fix condition for PostgreSQL database configur…
Browse files Browse the repository at this point in the history
…ation.
  • Loading branch information
geerlingguy authored and kekkis committed Feb 23, 2017
1 parent 1a482a5 commit 6607a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provisioning/tasks/install-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# See: https://www.drupal.org/node/2569365#comment-11680807
- name: Configure database correctly if using PostgreSQL.
command: psql -c "ALTER DATABASE {{ drupal_db_name }} SET bytea_output = 'escape';"
when: "'Successful' not in drupal_site_installed.stdout"
when: "('Successful' not in drupal_site_installed.stdout) and (drupalvm_database == 'pgsql')"
become: yes
become_user: "{{ postgresql_user }}"
# See: https://github.com/ansible/ansible/issues/16048#issuecomment-229012509
Expand Down

0 comments on commit 6607a44

Please sign in to comment.