Skip to content

Commit

Permalink
add config file
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiKhomik committed Dec 7, 2024
1 parent 5a8de6f commit 5b779e4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ansible1/ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[privilege_escalation]
become=True
become_method = sudo
pipelining = true
3 changes: 3 additions & 0 deletions ansible1/roles/postgresql/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
login_user: "{{ postgres_user }}"
login_password: ""
state: present
become: true
# become_user: "{{ postgres_user }}"
##############
# - name: Create PostgreSQL DB
# postgresql_db:
# name: "{{ postgres_db_development_name }}"
Expand Down
2 changes: 1 addition & 1 deletion ansible1/roles/postgresql/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ postgres_db_test_name: "zero_waste_test"
postgresql_python_library: "python3-psycopg2"
postgresql_hba_entries:
- { type: local, database: all, user: postgres, auth_method: trust }
- { type: local, database: all, user: all, auth_method: md5 }
- { type: local, database: all, user: all, auth_method: trust }
- {
type: host,
database: all,
Expand Down

0 comments on commit 5b779e4

Please sign in to comment.