-
-
Save Xerkus/ef98328f3d8bcbf553c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: ensure postgresql hstore extension is created | |
sudo: yes | |
sudo_user: postgres | |
shell: "psql {{ postgresql_database }} -c 'CREATE EXTENSION hstore;'" | |
register: psql_result | |
failed_when: > | |
psql_result.rc != 0 and ("already exists" not in psql_result.stderr) | |
changed_when: "psql_result.rc == 0" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment