From 9a7e3592f89900e5a8501c6b97d1ad371145fb3e Mon Sep 17 00:00:00 2001 From: Andrii Date: Sat, 7 Dec 2024 19:31:36 +0200 Subject: [PATCH] fix --- ansible1/ansible.cfg | 2 +- ansible1/roles/postgresql/tasks/main.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ansible1/ansible.cfg b/ansible1/ansible.cfg index 66b2efea5..e12c28310 100644 --- a/ansible1/ansible.cfg +++ b/ansible1/ansible.cfg @@ -1,4 +1,4 @@ -[privilege_escalation] +[defaults] become=True become_method = sudo pipelining = true \ No newline at end of file diff --git a/ansible1/roles/postgresql/tasks/main.yml b/ansible1/roles/postgresql/tasks/main.yml index 73f8d2899..56bd1a59e 100644 --- a/ansible1/roles/postgresql/tasks/main.yml +++ b/ansible1/roles/postgresql/tasks/main.yml @@ -134,9 +134,11 @@ password: "" login_user: "{{ postgres_user }}" login_password: "" + host: "127.0.0.1" + port: 5432 state: present become: true - # become_user: "{{ postgres_user }}" + become_user: "{{ postgres_user }}" ############## # - name: Create PostgreSQL DB # postgresql_db: