Created
September 8, 2016 07:36
-
-
Save leedohyung-dba/6d9b0d349d9ad5f66bacb035ce960c62 to your computer and use it in GitHub Desktop.
[Ansible][PostgreSQL]AnsibleでPostgreSQLのCreate DBエラー ref: http://qiita.com/leedohyung-dba/items/fa66577eefb90ec4044d
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
# Create a new database with name "acme" | |
- postgresql_db: name=acme | |
# Create a new database with name "acme" and specific encoding and locale | |
# settings. If a template different from "template0" is specified, encoding | |
# and locale settings must match those of the template. | |
- postgresql_db: name=acme | |
encoding='UTF-8' | |
lc_collate='de_DE.UTF-8' | |
lc_ctype='de_DE.UTF-8' | |
template='template0' |
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: Create the RLetters PostgreSQL database | |
become: yes | |
become_user: postgres | |
postgresql_db: db={{ dbname }} | |
tags: postgresql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment