Skip to content

Commit 0442ec2

Browse files
committed
[fix] Check both configuration files separately
1 parent 2a772fc commit 0442ec2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/configure.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
owner: "{{postgresql_admin_user}}"
2020
group: "{{postgresql_admin_user}}"
2121
mode: 0640
22-
register: postgresql_configuration_changed
22+
register: postgresql_configuration_pt1
2323

2424
- name: PostgreSQL | Update configuration - pt. 2 (postgresql.conf)
2525
template:
@@ -28,10 +28,10 @@
2828
owner: "{{postgresql_admin_user}}"
2929
group: "{{postgresql_admin_user}}"
3030
mode: 0640
31-
register: postgresql_configuration_changed
31+
register: postgresql_configuration_pt2
3232

3333
- name: PostgreSQL | Restart PostgreSQL
3434
service:
3535
name: postgresql
3636
state: restarted
37-
when: postgresql_configuration_changed
37+
when: postgresql_configuration_pt1.changed or postgresql_configuration_pt2.changed

0 commit comments

Comments
 (0)