Skip to content

Commit 15c8ddd

Browse files
committed
fix: apply changes
1 parent 7d6f3ea commit 15c8ddd

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

ansible/handlers/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@
3030
images: true
3131
builder_cache: true
3232
listen: "prune docker"
33+
34+
- name: "restarting postgres"
35+
ansible.builtin.systemd_service:
36+
name: "postgresql"
37+
state: "restarted"
38+
listen: "restart postgres"

ansible/roles/committeeclash/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@
3333
backup_file: "{{ postgres.pg_hba_path }}.old"
3434

3535
# TYPE DATABASE USER ADDR METHOD
36-
# local committeeclash committeeclash peer,scram-sha-256
36+
# local committeeclash committeeclash scram-sha-256
3737
contype: 'local'
3838
databases: 'committeeclash'
3939
users: 'committeeclash'
4040
method: 'scram-sha-256'
41+
notify: "restart postgres" # Apply changes
4142

4243
- name: "set up committeeclash"
4344
become_user: "committeeclash"

ansible/roles/databases/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
- "postgresql-13"
1717
- "python3-psycopg2"
1818

19-
2019
- name: "Explicitly specify peer auth as default over local communication"
2120
become_user: "postgres"
2221
become: true
@@ -31,6 +30,7 @@
3130
databases: 'all'
3231
users: 'all'
3332
method: 'peer'
33+
notify: "restart postgres" # Apply changes
3434

3535

3636
- name: "set up koala databases"

0 commit comments

Comments
 (0)