D
D
Dmitry Sviridov2020-09-16 16:05:01
PostgreSQL
Dmitry Sviridov, 2020-09-16 16:05:01

How to create a database for PostgreSQL with ru_RU.UTF-8 encoding using Ansible?

As far as I know, in order to create a database with ru_RU.UTF-8 encoding, you need to re-create the cluster with the appropriate encoding (otherwise there will be an error like "Database query failed: invalid locale name"). But when you delete an existing cluster, the data will also be deleted. How to make it so that when the corresponding playbook is launched, this happens only when the encoding is not ru_RU.UTF-8 (so that the data base is not deleted)?

Ps Please understand and forgive me, I'm doing this for the first time))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alfss, 2020-09-16
@dimuska139

https://docs.ansible.com/ansible/latest/modules/po...
https://docs.ansible.com/ansible/latest/modules/po...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question