Skip to content

Instantly share code, notes, and snippets.

@leedohyung-dba
Created September 8, 2016 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leedohyung-dba/6d9b0d349d9ad5f66bacb035ce960c62 to your computer and use it in GitHub Desktop.
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
# 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'
# データベース追加
- 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