Re: Initial Postgres admin account setup using Ansible?

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: Initial Postgres admin account setup using Ansible?
Дата
Msg-id DB47A2EB-C060-4AE7-842A-D10C6CF68FC4@thebuild.com
обсуждение исходный текст
Ответ на Initial Postgres admin account setup using Ansible?  (Nick <lists2@ageofdream.com>)
Список pgsql-general
On Dec 31, 2024, at 13:31, Nick <lists2@ageofdream.com> wrote:
> What is the proper (secure) way to let the Ansible POSIX user manage
> postgres? It seems there should be a fully automated way to bootstrap
> an Ansible user for `postgres`.

This is generally done with "become" and "become_user" in a shell command, something like:

- name: Do something as the postgres user
  ansible.builtin.shell: "psql ..."
  register: pgbackrest_which_output
  become: true
  become_user: postgres




В списке pgsql-general по дате отправления: