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: